17 lines
234 B
Go
17 lines
234 B
Go
|
//go:build darwin || freebsd
|
||
|
|
||
|
package postfix
|
||
|
|
||
|
import (
|
||
|
"syscall"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func statCTime(sys interface{}) time.Time {
|
||
|
stat, ok := sys.(*syscall.Stat_t)
|
||
|
if !ok {
|
||
|
return time.Time{}
|
||
|
}
|
||
|
return time.Unix(stat.Ctimespec.Unix())
|
||
|
}
|