README
This is an yet another implementation of timeago
time display.This library is mostly
inspired from the strings you see on stackoverflow.com
Design
I haven't considered the leap second into design and i have taken generally 30 days as month. So you can assume that i have sacrificed accuracy of months at the altar of usability. An year is considered as 365.25 days long.
TODO.
- Haven't implemented tests for strings such as
"Nov 1970 at 17:20:08"
. I need to use Faketime library to mock the current system time.
Usage
use ;
You can also see the tests file for more usage.
License
MIT or Apache
copyright
Srinivas Reddy Thatiparthy