Registry / utility / ararog-timeago

ararog-timeago

JSON →
library0.0.0-20160328174124-e9969cf18b8dgogounverified

Package time provides a set of functions to return how much time has been passed between two dates.

go get github.com/ararog/timeago
INSTALL
IMPORT
SIG · ARAROG-TIMEAGO
A
ararog-timeago
utilitygov0.0.0-20160328174124-e9969cf18b8d
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.

timeago
github.com/ararog/timeago

Get a human-readable time difference

package main import ( "fmt" "time" "github.com/ararog/timeago" ) func main() { past := time.Now().Add(-10 * time.Minute) result := timeago.TimeAgoWithTime(time.Now(), past) fmt.Println(result) // e.g., "10 minutes ago" }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20160328174124-e9969cf18b8dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
2
Meta
1
Resources
ararog-timeago — go get ararog-timeago · libregistry