Documentation ¶
Overview ¶
Package times provides a platform-independent way to get atime, mtime, ctime and btime for files.
Index ¶
Constants ¶
View Source
const ( HasChangeTime = true HasBirthTime = false )
HasChangeTime and HasBirthTime are true if and only if the target OS supports them.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timespec ¶
type Timespec interface { ModTime() time.Time AccessTime() time.Time ChangeTime() time.Time BirthTime() time.Time HasChangeTime() bool HasBirthTime() bool }
Timespec provides access to file times. ChangeTime() panics unless HasChangeTime() is true and BirthTime() panics unless HasBirthTime() is true.
func Lstat ¶ added in v1.1.0
Lstat returns the Timespec for the given filename, and does not follow Symlinks.
Click to show internal directories.
Click to hide internal directories.