mirror of
https://github.com/containers/podman.git
synced 2025-05-18 07:36:21 +08:00
17 lines
232 B
Go
17 lines
232 B
Go
//go:build linux
|
|
// +build linux
|
|
|
|
package ctime
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
"time"
|
|
)
|
|
|
|
func created(fi os.FileInfo) time.Time {
|
|
st := fi.Sys().(*syscall.Stat_t)
|
|
//nolint
|
|
return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
|
|
}
|