Template:Canthan

From Guild Wars 2 Wiki
Jump to navigationJump to search

25 Kainengtah 1847

Usage[edit]

Converts a Gregorian calendar date into a Canthan calendar date.

Parameters[edit]

1 (unnamed parameter)
The gregorian date you wish to convert. The date may be formated in any way that is supported by #time. An excerpt of usable formats may also be found in the table below. Defaults to the current date.
Format Example
yyyy-mm-dd 2018-11-26
mm/dd/yyyy 11/26/2018
dd (month name) yyyy 26 Nov 2018
(month name) dd, yyyy November 26, 2018
display
Optional. Forces the template to display a section of the date rather than the entire string. Possible values are day, month, year, day-month, and month-year.

Examples[edit]

Today is {{Canthan}}.

''"Lion's Arch was invaded on {{Canthan|18 February 2014}}, and liberated on {{Canthan|04 Mar 2014|display=day-month}} of that same year."''

returns

Today is 25 Kainengtah 1847.
"Lion's Arch was invaded on 19 Zhoyo 1837, and liberated on 03 Nongkam of that same year."

Notes[edit]

  • The following assumptions are made in this template due to insufficient in game information on the details of date conversion calculations being available.
    • Years are assumed to have 366 days if they are leap years or 365 days otherwise.
    • The date of the leap day is assumed the given date of the day that preceeds it.
    • The five days are assumed to be part of the last month of the calendar year.