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.
Click to show internal directories.
Click to hide internal directories.