Registry / utility / hako-durafmt

hako-durafmt

JSON →
library0.0.0-20210608085754-5c1018a4e16bgogounverified

Package durafmt formats time.Duration into a human readable format.

go get github.com/hako/durafmt
INSTALL
IMPORT
SIG · HAKO-DURAFMT
H
hako-durafmt
utilitygov0.0.0-20210608085754-5c1018a4e16b
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.

durafmt
github.com/hako/durafmt

Format a duration as a human-readable string.

package main import ( "fmt" "time" "github.com/hako/durafmt" ) func main() { d := 2*time.Hour + 30*time.Minute fmt.Println(durafmt.Parse(d).String()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210608085754-5c1018a4e16blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
hako-durafmt — go get hako-durafmt · libregistry