mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
17 lines
299 B
Go
17 lines
299 B
Go
// +build darwin freebsd netbsd openbsd
|
|
|
|
package fs
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// Returns the last-accessed time
|
|
func StatAtime(st *syscall.Stat_t) syscall.Timespec {
|
|
return st.Atimespec
|
|
}
|
|
|
|
// Returns the last-modified time
|
|
func StatMtime(st *syscall.Stat_t) syscall.Timespec {
|
|
return st.Mtimespec
|
|
}
|