Template:Age in days/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (Robot: Cosmetic changes)
m (Protected "Template:Age in days/doc": Robot: Protecting all pages from category templates (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
* <nowiki>{{age in days|2007|5|24}}</nowiki> gives {{age in days|2007|5|24}}
* <nowiki>{{age in days|2007|5|24}}</nowiki> gives {{age in days|2007|5|24}}
== Use with caution on in-universe pages ==
== Use with caution on in-universe pages ==
Please note that this template, and really everything in [[:category:age calculation templates]] should be ''''used with caution''' on in-universe pages.  They all assume that '''there is no year zero''', which [[T:YEARS|our in-universe rule on years]] does not.  This is because there are several in-universe sources, not the least of which is the [[Doctor Who (1996)|1996 movie]] and its novelisation, which assume that there ''is'' a year zero.  For ease of calculation, our in-universe time calculation templates, like {{tl|timeline}}, are therefore based on a different principle than this one — namely, that year 0 '''does exist'''.  
Please note that this template, and really everything in [[:category:age calculation templates]] should be '''used with caution''' on in-universe pages.  They all assume that '''there is no year zero''', which [[T:YEARS|our in-universe rule on years]] does not.  This is because there are several in-universe sources, not the least of which is the [[Doctor Who (TV story)|1996 movie]] and its novelisation, which assume that there ''is'' a year zero.  For ease of calculation, our in-universe time calculation templates, like {{tl|timeline}}, are therefore based on a different principle than this one — namely, that year 0 '''does exist'''.  


In practice, this means absolutely ''nothing'' to the calculation time of between two dates, so long as you're trying to figure out the distance between any two dates after 1/1/1 [[AD]].
In practice, this means absolutely ''nothing'' to the calculation time of between two dates, so long as you're trying to figure out the distance between any two dates after 1/1/1 [[AD]].
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 01:40, 13 May 2013

This template returns the number of days between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today.

To use, type:

{{age in days|month1= |day1= |year1= |month2= |day2= | year2=}}

Or with unnamed parameters:

{{age in days|year1|month1|day1|year2|month2|day2}} or
{{age in days|year1|month1|day1}}

Examples:

  • {{age in days|2007|5|24|2008|4|23}} gives 335
  • {{age in days|2007|5|24}} gives 6384

Use with caution on in-universe pages

Please note that this template, and really everything in category:age calculation templates should be used with caution on in-universe pages. They all assume that there is no year zero, which our in-universe rule on years does not. This is because there are several in-universe sources, not the least of which is the 1996 movie and its novelisation, which assume that there is a year zero. For ease of calculation, our in-universe time calculation templates, like {{timeline}}, are therefore based on a different principle than this one — namely, that year 0 does exist.

In practice, this means absolutely nothing to the calculation time of between two dates, so long as you're trying to figure out the distance between any two dates after 1/1/1 AD.