Implemented timespecToTime.
parent
fa4c2fb864
commit
01878af39a
|
@ -57,7 +57,9 @@ func currentGid() uint32 {
|
||||||
return uint32(gid)
|
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
|
// Boilerplate
|
||||||
|
|
Loading…
Reference in New Issue