Returns interval value in human readable format.
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

comments powered by Disqus