Template:ETHIOPIANDATE/doc
Appearance
| This is a documentation subpage for Template:ETHIOPIANDATE. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
{{ETHIOPIANDATE}} gives the date in the Ethiopian calendar. The individual units of time are returned by {{ETHIOPIANYEAR}}, {{ETHIOPIANMONTH}}, and {{ETHIOPIANDAY}}. 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 the date are taken from Calendrical Calculations by Nachum Dershowitz and Edward Reingold.
Usage
[edit]- Syntax
{{ETHIOPIANDATE|year|month|day}}
- Examples
{{ETHIOPIANDATE}}→ Maskaram 15{{ETHIOPIANDATE|format=DMY}}→ 15 Maskaram, 2019{{ETHIOPIANDATE|format=MDY}}→ Maskaram 15, 2019{{ETHIOPIANDATE|format=YMD}}→ 2019 Maskaram 15{{ETHIOPIANDATE|format=DM}}→ 15 Maskaram{{ETHIOPIANDATE|format=MD}}→ Maskaram 15{{ETHIOPIANDATE|1945|11|12}}→ H̱edār 3{{ETHIOPIANDATE|format=DMY|1945|11|12}}→ 3 H̱edār, 1938
Individual units of time
[edit]- The current year:
{{ETHIOPIANYEAR}}→ 2019 - The current month:
{{ETHIOPIANMONTH}}→ Maskaram - The current day of month:
{{ETHIOPIANDAY}}→ 15
Source
[edit]- Dershowitz, Nachum; Reingold, Edward M. (2008). Calendrical Calculations (Third ed.). Cambridge: Cambridge University Press. ISBN 9780521885409. OCLC 144768713.