Template:Age in days/doc: Difference between revisions
No edit summary |
m (Robot: Cosmetic changes) |
||
Line 5: | Line 5: | ||
Or with unnamed parameters: | Or with unnamed parameters: | ||
:<nowiki>{{age in days|year1|month1|day1|year2|month2|day2}}</nowiki> | :<nowiki>{{age in days|year1|month1|day1|year2|month2|day2}}</nowiki> or | ||
:<nowiki>{{age in days|year1|month1|day1}}</nowiki> | :<nowiki>{{age in days|year1|month1|day1}}</nowiki> | ||
Examples: | Examples: | ||
*<nowiki>{{age in days|2007|5|24|2008|4|23}}</nowiki> gives {{age in days|2007|5|24|2008|4|23}} | * <nowiki>{{age in days|2007|5|24|2008|4|23}}</nowiki> gives {{age in days|2007|5|24|2008|4|23}} | ||
*<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 (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'''. | ||
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]]. |
Revision as of 20:26, 30 January 2012
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.