Template:yearssince

From Homestar Runner Wiki

Jump to: navigation, search

Outputs the number of whole years since a specified date. If the date is on or after 1 January 1970, it can be entered directly in a variety of formats. Otherwise, it must be specified using several parameters. If you specify only the year, it is recommended to declare it using the y parameter to avoid having it be interpreted as a time.

[edit] Usage

  • {{yearssince| some date }}
  • {{yearssince| d=day | m=month | y=year }}

[edit] Examples

{{yearssince| 15 Nov 2004 }} 15
{{yearssince| January 1, 2000 }} 20
{{yearssince| 10/25/76 }} 43
{{yearssince| July 1983 }} 36
{{yearssince| d=29 | m=5 | y=1952 }} 67
{{yearssince| y=1995 }} 25
{{yearssince| y=1215 }} 805
Personal tools