Skip to content

Commit

Permalink
let's go
Browse files Browse the repository at this point in the history
  • Loading branch information
dubs3c committed Jan 5, 2022
1 parent 062287d commit 203036b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time_linxu.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import (
)

func GetCreationDate(file fs.FileInfo) time.Time {
ts := file.Sys().(*syscall.Stat_t)
ts := file.Sys().(*syscall.Stat_t).Atim
return time.Unix(int64(ts.Sec), int64(ts.Nsec))
}

0 comments on commit 203036b

Please sign in to comment.