PHP » GoLang |
login |
register |
about
|
fileatimefileatime[code=golang] import ( "os" "time" ) func fileatime(filename string) (int64, error) { info, err := os.Stat(filename) if err != nil { return 0, err } atime := info.ModTime() return atime.Unix(), nil } [/code] |