Implemented timespecToTime.

geesefs-0-30-9
Aaron Jacobs 2015-03-03 10:40:52 +11:00
parent fa4c2fb864
commit 01878af39a
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ func currentGid() uint32 {
return uint32(gid)
}
func timespecToTime(ts syscall.Timespec) time.Time
func timespecToTime(ts syscall.Timespec) time.Time {
return time.Unix(ts.Sec, ts.Nsec)
}
////////////////////////////////////////////////////////////////////////
// Boilerplate