<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ATime_ago%2Fdoc</id>
	<title>模板:Time ago/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ATime_ago%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Time_ago/doc&amp;action=history"/>
	<updated>2026-04-04T08:42:15Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Time_ago/doc&amp;diff=619&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Documentation}} The &#039;&#039;&#039;Time ago&#039;&#039;&#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 &#039;&#039;should not&#039;&#039; be used with &quot;subst&quot; unless you don&#039;t want the stamp to change as the user refreshes the page.  The result is rounded down. &quot;Month&quot; is defined as 31 days.  ;Usage * &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;&#039;&#039;&#039;Time ago&#039;&#039;&#039;|&#039;&#039;timestamp&#039;&#039;&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;/code&gt;  The ti…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Time_ago/doc&amp;diff=619&amp;oldid=prev"/>
		<updated>2023-07-13T17:54:05Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation}} 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.  The result is rounded down. &amp;quot;Month&amp;quot; is defined as 31 days.  ;Usage * &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;  The ti…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation}}&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;
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;.&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|-83 minutes}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|-334 minutes}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|{{REVISIONTIMESTAMP}}}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Jan 21 2001 3:45 PM}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago| Nov 6 2008|magnitude=weeks}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|min_magnitude=days}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|min_magnitude=years}}&amp;#039;&amp;#039;&amp;#039;&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; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|ago=in the past}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Nov 6 2008|purge=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|purge=yes}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{Time ago| Nov 6 2008|purge=x}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; → &amp;#039;&amp;#039;&amp;#039;{{Time ago|Nov 6 2008|purge=x}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Mathematical function templates]]&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>