Ago Packages

t-since

Format the relative time between the current date and a given date in a human readable format. The output is rounded to the nearest time unit, i.e. 1 year ago, 5 minutes ago, in 3 days, in 6 seconds

2.0.1 • Published 2 years ago

some-time-ago

Human-friendly description of how long ago was a given date using Intl

0.2.1 • Published 3 years ago

ytimeago

``` let ago = require('ytimeago') v = ago(Date.now() - 1000) // 1s v = ago(Date.now() - 1000, '') // just now v = ago(Date.now() - 60 * 1000) // 1m // 1 minute ago v = ago(Date.now() - 60 * 60 * 1000) // 1h // 1 hour ago v = ago(Date.now() - 24 * 60 * 60

1.0.0 • Published 2 years ago