summaryrefslogtreecommitdiff
path: root/libpod/finished_64.go
blob: 3688afa8460550e0b29b59e3675a4ebc14647b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// +build !arm,!386,linux

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)
}