<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/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://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATime_ago%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Time_ago/doc&amp;action=history"/>
	<updated>2026-04-04T15:15:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:Time_ago/doc&amp;diff=6694&amp;oldid=prev</id>
		<title>Shawndouglas: Created as necessary.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Time_ago/doc&amp;diff=6694&amp;oldid=prev"/>
		<updated>2011-11-20T18:20:53Z</updated>

		<summary type="html">&lt;p&gt;Created as necessary.&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;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
The '''Time ago''' 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 ''should not'' be used with &amp;quot;subst&amp;quot; unless you don't want the stamp to change as the user refreshes the page.&lt;br /&gt;
&lt;br /&gt;
Note that due to LIMSwiki's caching mechanisms, you may need to purge a page using this template to update the dynamic value.&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;'''Time ago'''|''timestamp''&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;.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| -83 minutes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|-83 minutes}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| -334 minutes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|-334 minutes}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago|{{REVISIONTIMESTAMP}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|{{REVISIONTIMESTAMP}}}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Jan 21, 2001 3:45 PM}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|Jan 21 2001 3:45 PM}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Nov 6 2008}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|Nov 6 2008}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Nov 6 2008|magnitude=weeks}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago| Nov 6 2008|magnitude=weeks}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Nov 6 2008|min_magnitude=days}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|Nov 6 2008|min_magnitude=days}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Nov 6 2008|min_magnitude=years}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|Nov 6 2008|min_magnitude=years}}'''&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Nov 6 2008|ago=in the past}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → '''{{Time ago|Nov 6 2008|ago=in the past}}'''&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* {{tl|LastEditedBy}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Mathematical time and date function templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>