blob: 1251c1ded7710e4dead2845d3051d00e41d076e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// +build !arm,!386,linux
package ctime
import (
"os"
"syscall"
"time"
)
func created(fi os.FileInfo) time.Time {
st := fi.Sys().(*syscall.Stat_t)
return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
}
|