summaryrefslogtreecommitdiff
path: root/libpod/finished_32.go
blob: d66974177de3d3a51ec86036abca76bbf3713177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// +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))
}