mirror of
https://github.com/containers/podman
synced 2024-10-22 02:03:38 +00:00
4ea26aace4
Rename finished_amd64 to finished64.go to more accurately reflect that it covers all 64bit arches. Also, bumped the EPOCH for gitvalidation to speed up validations. Signed-off-by: baude <bbaude@redhat.com> Closes: #318 Approved by: mheon
17 lines
267 B
Go
17 lines
267 B
Go
// +build !arm,!386
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
// Get the created time of a file
|
|
// Only works on 64-bit OSes
|
|
func getFinishedTime(fi os.FileInfo) time.Time {
|
|
st := fi.Sys().(*syscall.Stat_t)
|
|
return time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
|
|
}
|