Template:Time ago

A template borrowed from Wikipedia. It calculates the passed amount of time since the last timestamp as default. You can also insert your own date.

The numbers will be rounded (e.g. a month will be equal to 31 days).

Usage
The timestamp can be almost any solid, readable format. However to avoid ambiguity mistakes, one of the styles below is preferred.
 *  
 * magnitude - This parameter can be set to use a specific unit instead of the default. Allowed values are: seconds, minutes, hours, days, weeks, months and years</tt>.
 * min_magnitude</tt> - This parameter can be set to use the specified unit or bigger units. Allowed values are: seconds</tt>, minutes</tt>, hours</tt>, days</tt>, months</tt> and years</tt>.
 * ago</tt> - This parameter can be set to override the default usage of the text "ago</tt>".