Template:ARMENIANDATE/doc
Appearance
| This is a documentation subpage for Template:ARMENIANDATE. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
{{ARMENIANDATE}} gives the date in the Armenian calendar.
The given year is in the calendar adopted at the Second Council of Dvin. The individual units of time are returned by {{ARMENIANDATE/year}}, {{ARMENIANDATE/month}}, and {{ARMENIANDATE/day}}. The year, month and day can be given as parameters, but if not, they will default to the current date in UTC. The algorithms to derive it are taken from Calendrical Calculations by Nachum Dershowitz and Edward Reingold.
Usage
[edit]- Syntax
{{ARMENIANDATE|format=format|year|month|day}}
- Examples
{{ARMENIANDATE}}→ 6 Sahmi 1476{{ARMENIANDATE|format=DMY}}→ 6 Sahmi 1476{{ARMENIANDATE|format=MDY}}→ Sahmi 6, 1476{{ARMENIANDATE|format=YMD}}→ 1476 Sahmi 6{{ARMENIANDATE|format=DM}}→ 6 Sahmi{{ARMENIANDATE|format=MD}}→ Sahmi 6{{ARMENIANDATE|1945|11|12}}→ 5 Trē 1395{{ARMENIANDATE|format=YMD|1945|11|12}}→ 1395 Trē 5
Individual units of time
[edit]- The current year:
{{ARMENIANDATE/year}}→ 1476 - The current month:
{{ARMENIANDATE/month}}→ Sahmi - The current day of month:
{{ARMENIANDATE/day}}→ 6
Source
[edit]- Dershowitz, Nachum; Reingold, Edward M. (2008). Calendrical Calculations (Third ed.). Cambridge: Cambridge University Press. ISBN 9780521885409. OCLC 144768713.