Files
kitty/tools/stat/get2.go
2025-02-09 14:11:14 +05:30

21 lines
294 B
Go

//go:build darwin || freebsd || netbsd
package stat
import (
"fmt"
"io/fs"
"time"
)
var _ = fmt.Print
func Get(f fs.FileInfo) (ans StatResult) {
u := ans.setup_common(f)
if u != nil {
ans.Ctime = time.Unix(u.Ctimespec.Unix())
ans.Atime = time.Unix(u.Atimespec.Unix())
}
return
}