Registry / utility / x-duration

x-duration

JSON →
library0.0.0-20160924141736-faac084b6075gogounverified

Provides routines to parse standard units of time, extending Go's time.Duration parsing.

go get maze.io/x/duration
INSTALL
IMPORT
SIG · X-DURATION
X
x-duration
utilitygov0.0.0-20160924141736-faac084b6075
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.

duration
maze.io/x/duration

Parses a duration string and prints the result.

package main import ( "fmt" "maze.io/x/duration" ) func main() { d, err := duration.ParseDuration("1h30m") if err != nil { panic(err) } fmt.Println(d) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160924141736-faac084b6075latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
x-duration — go get x-duration · libregistry