<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATime_ago%2Fdoc</id>
	<title>Template:Time ago/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATime_ago%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Time_ago/doc&amp;action=history"/>
	<updated>2026-04-06T06:25:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Time_ago/doc&amp;diff=33343&amp;oldid=prev</id>
		<title>Wikipedia&gt;GreenC at 18:37, 2 February 2021</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Time_ago/doc&amp;diff=33343&amp;oldid=prev"/>
		<updated>2021-02-02T18:37:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{high-use|119878}}&lt;br /&gt;
{{lua|Module:Time ago}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata.  --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Time ago&amp;#039;&amp;#039;&amp;#039; template calculates the amount of time which has passed since a provided timestamp.  The result is a string similar to one of the examples below.  This template &amp;#039;&amp;#039;should not&amp;#039;&amp;#039; be used with &amp;quot;subst&amp;quot; unless you don&amp;#039;t want the stamp to change as the user refreshes the page.&lt;br /&gt;
&lt;br /&gt;
Note that due to Wikipedia&amp;#039;s caching mechanisms, you may need to [[WP:PURGE|purge]] a page using this template to update the dynamic value. See the section [[#Purge|Purge]] below.&lt;br /&gt;
&lt;br /&gt;
The result is rounded down. &amp;quot;Month&amp;quot; is defined as 31 days.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;Time ago&amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;timestamp&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The timestamp can be almost any solid, readable format but to avoid ambiguity mistakes, one of the styles below is preferred.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;magnitude&amp;lt;/code&amp;gt; parameter can be set to explicitly use certain unit. Allowed values are: &amp;lt;code&amp;gt;seconds&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minutes&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hours&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;days&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;weeks&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;months&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;years&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;min_magnitude&amp;lt;/code&amp;gt; parameter can be set to use the specified unit or bigger units. Allowed values are: &amp;lt;code&amp;gt;seconds&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minutes&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hours&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;days&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;months&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;years&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;ago&amp;lt;/code&amp;gt; parameter can be set to override the default usage of the text &amp;quot;&amp;lt;code&amp;gt;ago&amp;lt;/code&amp;gt;&amp;quot;. If the parameter is blank but not missing (i.e. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{time ago|2008|ago=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), then the text &amp;quot;ago&amp;quot; is suppressed altogether. For future dates, setting &amp;quot;ago&amp;quot; as blank but not missing will suppress the text &amp;quot;time&amp;quot; (i.e. &amp;quot;2 years&amp;quot; instead of &amp;quot;2 years&amp;#039; time&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
=== Spelling out numbers ===&lt;br /&gt;
Numbers from 1 to 100 can be spelled out in their equivalent English word by using the &amp;lt;code&amp;gt;spellout&amp;lt;/code&amp;gt; parameter. If &amp;lt;code&amp;gt;spellout&amp;lt;/code&amp;gt; is set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot; or &amp;quot;1&amp;quot;, all numbers from 1 to 100 will be spelled out. If &amp;lt;code&amp;gt;spellout&amp;lt;/code&amp;gt; is set to &amp;quot;auto&amp;quot;, only numbers from 1 to 9 will be spelled out, as per the recommendations at [[MOS:NUMERAL]].&lt;br /&gt;
&lt;br /&gt;
It is also possible to set a custom maximum value for spelling out by using the &amp;lt;code&amp;gt;spelloutmax&amp;lt;/code&amp;gt; parameter. For example, setting {{para|spellout|yes}} and {{para|spelloutmax|24}} will result in all numbers less than or equal to 24 being spelled out, and all numbers greater than 24 appearing as numerals.&lt;br /&gt;
&lt;br /&gt;
=== Numeric output ===&lt;br /&gt;
Add {{para|numeric|y}} to print the number only (no text).&lt;br /&gt;
&lt;br /&gt;
=== Purge link ===&lt;br /&gt;
Add the parameter {{para|purge|yes}} to add a [[WP:PURGE|purge]] link.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* {{tlc|Time ago| -83 minutes}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|-83 minutes}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| -334 minutes}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|-334 minutes}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| +334 minutes}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|+334 minutes}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago|&amp;lt;nowiki&amp;gt;{{REVISIONTIMESTAMP}}&amp;lt;/nowiki&amp;gt;}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|{{REVISIONTIMESTAMP}}}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| Jan 21, 2001 3:45 PM}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Jan 21 2001 3:45 PM}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;Wrong:&amp;#039;&amp;#039; {{tlc|Time ago| 3:45 pm, 21 Jan 2001}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|3:45 pm, 21 Jan 2001}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago|20010121154500}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|20010121154500}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=magnitude=weeks}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago| Nov 6 2008|magnitude=weeks}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=min_magnitude=days}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|min_magnitude=days}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=min_magnitude=years}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|min_magnitude=years}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=ago=in the past}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|ago=in the past}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| Nov 6 2008|3=purge=yes}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|purge=yes}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago| 2008-11-06}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|2008-11-06}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| June 1, 2009|spellout=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;{{time ago|June 1, 2009|spellout=yes}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| June 1, 1999|spellout=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;{{time ago|June 1, 1999|spellout=yes}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| June 1, 2009|spellout=auto}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;{{time ago|June 1, 2009|spellout=auto}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| June 1, 1999|spellout=auto}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;{{time ago|June 1, 1999|spellout=auto}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| June 1, 1989|spellout=yes|spelloutmax=15}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;{{time ago|June 1, 1989|spellout=yes|spelloutmax=15}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| June 1, 1989|spellout=yes|spelloutmax=25}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;{{time ago|June 1, 1989|spellout=yes|spelloutmax=25}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* {{tlc|Time ago|195909}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|195909}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;Wrong:&amp;#039;&amp;#039; {{tlc|Time ago|196009}} → &amp;#039;&amp;#039;&amp;#039;{{Time ago|196009}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template calculates the amount of time which has passed since a provided timestamp.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Timestamp&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Base timestamp for calculation of passed time. Example format: Nov 6 2008, see template documentation for other supported formats.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;magnitude&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;magnitude&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Explicitly sets a specific unit to display return value. Allowed values are: seconds, minutes, hours, days, weeks, months and years.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;min_magnitude&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;min_magnitude&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Sets a minimum unit to display return value. Allowed values are: seconds, minutes, hours, days, months and years.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;ago&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;ago&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Override the default usage of the text &amp;#039;ago&amp;#039;. If it is blank but not missing then &amp;#039;ago&amp;#039; will be removed completely; for future dates, this will remove the text &amp;#039;time&amp;#039; as well.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;purge&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Purge link&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Add the parameter purge=yes to add a WP:PURGE link.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;spellout&amp;quot;: {&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string/line&amp;quot;,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Spell out numbers&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to \&amp;quot;yes\&amp;quot;, \&amp;quot;y\&amp;quot;, \&amp;quot;true\&amp;quot; or \&amp;quot;1\&amp;quot;, numbers from 1 to 100 are spelled out as English words. If set to \&amp;quot;auto\&amp;quot;, numbers from 1 to 9 are spelled out.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;spelloutmax&amp;quot;: {&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Spell out max&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The maximum number to be spelled out as an English word.&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Last edited by}}&lt;br /&gt;
* {{tl|Years or months ago}}&lt;br /&gt;
* {{tl|Age}}&lt;br /&gt;
* {{tl|Start date and age}}&lt;br /&gt;
* {{tl|Birth date and age}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Mathematical time and date function templates]]&lt;br /&gt;
[[Category:Date-computing templates based on current time]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;GreenC</name></author>
	</entry>
</feed>