mirror of
https://github.com/containers/podman.git
synced 2025-05-30 23:17:20 +08:00
17 lines
275 B
Go
17 lines
275 B
Go
// +build arm 386
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
// Get created time of a file
|
|
// Only works on 32-bit OSes
|
|
func getFinishedTime(fi os.FileInfo) time.Time {
|
|
st := fi.Sys().(*syscall.Stat_t)
|
|
return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
|
|
}
|