Changes

Jump to navigation Jump to search
Create
{{Documentation subpage}}
The '''[[Template:Years_and_days]]''' shows the equivalent years and days for a count in days, with singular words when 1 year or 1 day. A year is treated as 365.25 days, where 366 days is "1 year, 1 day". The purpose of the template is to reduce a large count of days into the years/days format, but also handle small counts of days as just "''n'' days".
: '''Usage:''' &nbsp; <nowiki>{{Years and days|888}}</nowiki>{{ns}}gives:&nbsp; 2 years, 158 days
:::: <nowiki>{{Years and days|365}}</nowiki>{{ns}}gives:&nbsp; 1 year
:::: <nowiki>{{Years and days|4200}}</nowiki> {{ns}} gives:&nbsp; 11 years, 182 days
:::: <nowiki>{{Years and days|7000100}}</nowiki> gives:&nbsp; {{Years and days|7000100}}
The count of days can range from 0 to many millions, billions, etc.

== See also ==
* [[Template:Birth_date_and_age]] – show birthdate and age in years
* [[Template:Days_since]] – shows years/days since a specific month|day|year.

[[Category:Time, date and calendar templates]]

Navigation menu