Difference between revisions of "Template:Years and days"
Jump to navigation
Jump to search
en>علاء الدين (Add a documentation) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:47, 2 January 2019
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: {{Years and days|888}} gives: 2 years, 158 days
- {{Years and days|365}} gives: 1 year
- {{Years and days|4200}} gives: 11 years, 182 days
- {{Years and days|7000100}} gives: 19,165 years, 84 days
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.
The above documentation is transcluded from Template:Years and days/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |