Registry / utility / mergestat-timediff

mergestat-timediff

JSON →
library0.0.4gogounverified

Human-readable time differences (e.g., '3 hours ago').

go get github.com/mergestat/timediff
INSTALL
IMPORT
SIG · MERGESTAT-TIMEDIFF
M
mergestat-timediff
utilitygov0.0.4
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.

timediff
github.com/mergestat/timediff

Print '2 hours ago'

package main import ( "fmt" "time" "github.com/mergestat/timediff" ) func main() { fmt.Println(timediff.TimeDiff(time.Now().Add(-2 * time.Hour))) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mergestat-timediff — go get mergestat-timediff · libregistry