Returns age in human readable format.
w2utils.age(dateStr)
dateStr |
string or number, date in common format |
The dateStr argument can be any standard date or unix epoch, which is used to create JavaScript
Date object. The age is returned either in seconds, minutes, hours, days, months or years.