Template:BABYLONIANDATE/doc
| This is a documentation subpage for Template:BABYLONIANDATE. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
{{BABYLONIANDATE}} gives the date in the Babylonian calendar. The given year is in the Seleucid era. The individual units and component values are returned by {{BABYLONIANDATE/day}}, {{BABYLONIANDATE/leap}}, {{BABYLONIANDATE/month}}, {{BABYLONIANDATE/year}}. 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
{{BABYLONIANDATE|format=format|year|month|day}}
- Examples
{{BABYLONIANDATE}}→ 11 Ululu, 2337{{BABYLONIANDATE|format=DMY}}→ 11 Ululu, 2337{{BABYLONIANDATE|format=MDY}}→ Ululu 11, 2337{{BABYLONIANDATE|format=YMD}}→ 2337 Ululu 11{{BABYLONIANDATE|format=DM}}→ 11 Ululu{{BABYLONIANDATE|format=MD}}→ Ululu 11{{BABYLONIANDATE|1945|11|12}}→ 6 Arakhsamna, 2256{{BABYLONIANDATE|format=YMD|1945|11|12}}→ 2256 Arakhsamna 6
Individual units of time
[edit]- The current day of month:
{{BABYLONIANDATE/day}}→ 11 - The current leap-month flag:
{{BABYLONIANDATE/leap}}→ 0 - The current month:
{{BABYLONIANDATE/month}}→ Ululu - The current year:
{{BABYLONIANDATE/year}}→ 2337
The above subtemplates all take optional year, month and day parameters.
Source
[edit]- Dershowitz, Nachum; Reingold, Edward M. (2018). Calendrical Calculations (Fourth ed.). Cambridge: Cambridge University Press. ISBN 9781107057623. OCLC 1030959487.