github.com/zooyer/miskit@v1.0.71/log/stat_linux.go (about) 1 package log 2 3 import ( 4 "syscall" 5 "time" 6 ) 7 8 func (s *stat) createTime() time.Time { 9 stat := s.FileInfo.Sys().(*syscall.Stat_t) 10 11 return time.Unix(stat.Ctim.Unix()) 12 }