HumanTime.js Timeago Library Demos
Download Back To CSSScript.Com
Turn activity feed timestamps into timeago labels with humantime-js, a dependency-free JavaScript utility for browsers and Node.js.
Vanilla JS ready
jQuery not required
Build step none
Live Formatter
Pick a date or use a preset.
Output
just now
Relative Time Range
Core outputs from seconds through years.
Activity Feed
Relative labels update without a page refresh.
Accepted Inputs
The browser build accepts Date objects, timestamps, and date strings.
Browser Build
This page loads the compiled UMD file from the local dist folder.
Checking...
Global namespace:
HumanTime.timeAgo
Current limitation
The included UMD build exposes one function:
timeAgo(input).