TargetTime returns the current target time for the VFS file (nil for latest).
()
| 988 | |
| 989 | // TargetTime returns the current target time for the VFS file (nil for latest). |
| 990 | func (f *VFSFile) TargetTime() *time.Time { |
| 991 | f.mu.Lock() |
| 992 | defer f.mu.Unlock() |
| 993 | if f.targetTime == nil { |
| 994 | return nil |
| 995 | } |
| 996 | t := *f.targetTime |
| 997 | return &t |
| 998 | } |
| 999 | |
| 1000 | // LatestLTXTime returns the timestamp of the most recent LTX file. |
| 1001 | func (f *VFSFile) LatestLTXTime() time.Time { |
no test coverage detected