Skip to content

Light weight js library to convert time to ago

Notifications You must be signed in to change notification settings

Shiva1029/timeago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

timeago

Light weight js library to convert time to ago or later format without dependencies

Minutes, Hours, Days, Weeks, Months, Years

Usage

convertToRead(milliseconds); OR convertToRead(dateString); OR convertToRead(year, month, day, hours, minutes, seconds, milliseconds);

Note If using Input type 3 String Must consist of year, month, day, hours, minutes, seconds, milliseconds to be compatible with all the browsers.

Function Returns String Data Type, for Example

2 Days ago OR 3 Years ago

About

Light weight js library to convert time to ago

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published