<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ATime_interval%2Fdoc</id>
	<title>Template:Time interval/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ATime_interval%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Time_interval/doc&amp;action=history"/>
	<updated>2026-04-07T23:05:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Time_interval/doc&amp;diff=14042&amp;oldid=prev</id>
		<title>Caleb Cooper: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Time_interval/doc&amp;diff=14042&amp;oldid=prev"/>
		<updated>2020-10-25T18:27:13Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:27, 25 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Time_interval/doc&amp;diff=14041&amp;oldid=prev</id>
		<title>wikipedia&gt;Johnuniq: add show=M + show=s</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Time_interval/doc&amp;diff=14041&amp;oldid=prev"/>
		<updated>2020-08-03T03:02:45Z</updated>

		<summary type="html">&lt;p&gt;add show=M + show=s&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;
{{Lua|Module:Age|Module:Date}}&lt;br /&gt;
This template calculates the date/time difference between two dates. Dates in the [[Gregorian calendar]] from 9999 BCE to 9999 CE are supported. The calendar is proleptic—it is assumed to apply at all times with no irregularities.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
{{Template shortcuts|t-int}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;amp;#123;{time interval|&amp;#039;&amp;#039;date1&amp;#039;&amp;#039;|&amp;#039;&amp;#039;date2&amp;#039;&amp;#039;|&amp;#039;&amp;#039;options&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are two positional arguments: &amp;#039;&amp;#039;date1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;date2&amp;#039;&amp;#039;. The default for each is the current date and time.&lt;br /&gt;
&lt;br /&gt;
The result displays text representing the time interval from &amp;#039;&amp;#039;date1&amp;#039;&amp;#039; to &amp;#039;&amp;#039;date2&amp;#039;&amp;#039; (&amp;#039;&amp;#039;date2&amp;#039;&amp;#039; − &amp;#039;&amp;#039;date1&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
Dates are [[Coordinated Universal Time|UTC]]—local times and time zones are not supported.&lt;br /&gt;
&lt;br /&gt;
Dates are checked for validity. For example, 29 February 2000 is accepted, but 29 February 1900 is not a valid date.&lt;br /&gt;
&lt;br /&gt;
Each date can include an era or a time, and a variety of formats are accepted. Examples of valid dates are:&lt;br /&gt;
:1900-02-01&lt;br /&gt;
:1900-2-1&lt;br /&gt;
:1900-02-01 14:45&lt;br /&gt;
:1 FEB 1900&lt;br /&gt;
:February 1, 1900&lt;br /&gt;
:February 1 1900 14:45&lt;br /&gt;
:2:45 pm February 1 1900&lt;br /&gt;
:1 February 1900 2:45 p.m.&lt;br /&gt;
:BC 1 Feb 120&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{time interval|1 Jan 2001|March 4, 2002}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{time interval|1 Jan 2001|March 4, 2002}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{time interval|1 Jan 2001|March 4, 2002|abbr=on}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{time interval|1 Jan 2001|March 4, 2002|abbr=on}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{time interval|B.C.E. 1 Feb 120|28 FEB 1900}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{time interval|B.C.E. 1 Feb 120|28 FEB 1900}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;abbr=off&amp;lt;/code&amp;gt;        || Unit names in full (default): year, month, day, hour, minute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;abbr=on&amp;lt;/code&amp;gt;         || Units shown as a single letter with no space between number and unit: y, m, d, h, m.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;disp=age&amp;lt;/code&amp;gt;        || If no &amp;lt;code&amp;gt;show&amp;lt;/code&amp;gt; has been entered, years are displayed if the age is above 3 years, years and months from 1 to 3 years, or months and days for under 1 year. Sets &amp;lt;code&amp;gt;sep=space&amp;lt;/code&amp;gt; by default. This is compatible with {{tl|age for infant}}.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;disp=raw&amp;lt;/code&amp;gt;        || Display numbers only with &amp;lt;code&amp;gt;sep=space&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;duration=on&amp;lt;/code&amp;gt;     || Period is a duration (has an extra day to include the end date).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;format=commas&amp;lt;/code&amp;gt;   || Numbers over 999 are formatted with commas.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;format=raw&amp;lt;/code&amp;gt;      || Use a hyphen (-) to indicate a negative date difference instead of a minus (−); a hyphen may allow the result to be used in a calculation.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sep=comma&amp;lt;/code&amp;gt;       || Separator between items is a comma: 1 year, 2 months, 3 days. The default is 1 year, 2 months and 3 days.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sep=,&amp;lt;/code&amp;gt;           || Same as &amp;lt;code&amp;gt;sep=comma&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sep=serialcomma&amp;lt;/code&amp;gt; || Use a [[serial comma]]: 1 year, 2 months, and 3 days.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sep=space&amp;lt;/code&amp;gt;       || Use a space: 1 year 2 months 3 days.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sc=y&amp;lt;/code&amp;gt;            || Change the default separator to use a serial comma. Also accepts &amp;lt;code&amp;gt;sc=yes&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;sc=on&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=y&amp;lt;/code&amp;gt;          || years&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ym&amp;lt;/code&amp;gt;         || years and months&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ymd&amp;lt;/code&amp;gt;        || years, months and days (default)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ymw&amp;lt;/code&amp;gt;        || years, months and weeks&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ymwd&amp;lt;/code&amp;gt;       || years, months, weeks and days&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=yd&amp;lt;/code&amp;gt;         || years and days&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=m&amp;lt;/code&amp;gt;          || months&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=md&amp;lt;/code&amp;gt;         || months and days&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=w&amp;lt;/code&amp;gt;          || weeks&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=wd&amp;lt;/code&amp;gt;         || weeks and days&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=d&amp;lt;/code&amp;gt;          || days&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=dh&amp;lt;/code&amp;gt;         || days and hours&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=dhm&amp;lt;/code&amp;gt;        || days, hours and minutes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=dhms&amp;lt;/code&amp;gt;       || days, hours, minutes and seconds&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ymdh&amp;lt;/code&amp;gt;       || ymd + hours&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ymdhm&amp;lt;/code&amp;gt;      || ymd + hours and minutes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ymwdh&amp;lt;/code&amp;gt;      || ymwd + hours&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=ymwdhm&amp;lt;/code&amp;gt;     || ymwd + hours and minutes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=h&amp;lt;/code&amp;gt;          || hours (result would be 48 hours for a difference of 2 days)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=hm&amp;lt;/code&amp;gt;         || hours and minutes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=hms&amp;lt;/code&amp;gt;        || hours, minutes and seconds&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=M&amp;lt;/code&amp;gt;          || minutes (uppercase &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; because &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt; is months)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;show=s&amp;lt;/code&amp;gt;          || seconds&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;round=on&amp;lt;/code&amp;gt;        || Round the least-significant unit specified with the &amp;lt;code&amp;gt;show=&amp;lt;/code&amp;gt; parameter.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;round=months&amp;lt;/code&amp;gt;    || Round to nearest month using &amp;lt;code&amp;gt;show=ym&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;round=weeks&amp;lt;/code&amp;gt;     || Round to nearest week using &amp;lt;code&amp;gt;show=ymw&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;round=days&amp;lt;/code&amp;gt;      || Round to nearest day using &amp;lt;code&amp;gt;show=ymd&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;round=hours&amp;lt;/code&amp;gt;     || Round to nearest hour using &amp;lt;code&amp;gt;show=ymdh&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sortable=on&amp;lt;/code&amp;gt;     || Output a hidden sort key based on the number of days in the date difference (includes a fraction of a day to handle time differences).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sortable=off&amp;lt;/code&amp;gt;    || No sort key (default).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sortable=debug&amp;lt;/code&amp;gt;  || Output a visible sort key for testing.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Johnuniq</name></author>
	</entry>
</feed>