blob: 25c550a9a7cf398abab1066aa0290c2f297ec8ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//go:build darwin
package app
import (
"syscall"
"time"
)
// macOS names the ctime field Ctimespec rather than Ctim, so it needs its own
// variant to let the project build and test on a Mac (deploys are Linux).
func statTime(stat *syscall.Stat_t) int64 {
return time.Unix(stat.Ctimespec.Unix()).UnixMilli()
}
|