Registry / utility / djherbis-times

djherbis-times

JSON →
library1.6.0gogounverified

Package times provides a platform-independent way to get atime, mtime, ctime and btime for files.

go get github.com/djherbis/times
INSTALL
IMPORT
SIG · DJHERBIS-TIMES
D
djherbis-times
utilitygov1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

times
github.com/djherbis/times

Get file timestamps across platforms

package main import ( "fmt" "github.com/djherbis/times" ) func main() { t, err := times.Stat("file.txt") if err != nil { panic(err) } fmt.Println("Modification time:", t.ModTime()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Resources
djherbis-times — go get djherbis-times · libregistry