diff options
Diffstat (limited to 'oci/finished.go')
-rw-r--r-- | oci/finished.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/oci/finished.go b/oci/finished.go new file mode 100644 index 000000000..9fedbfb7a --- /dev/null +++ b/oci/finished.go @@ -0,0 +1,14 @@ +// +build !arm,!386 + +package oci + +import ( + "os" + "syscall" + "time" +) + +func getFinishedTime(fi os.FileInfo) time.Time { + st := fi.Sys().(*syscall.Stat_t) + return time.Unix(st.Ctim.Sec, st.Ctim.Nsec) +} |