w2utils.interval

Returns interval value in human readable format.
interval(intStr)
number number, number of milliseconds
The intStr argument should be a number of milliseconds. The interval is returned either in seconds, minutes, hours, days, months or years.
Here is an example how you can calculate age

User Comments