Template:ROMANDATE/doc
Appearance
| This is a documentation subpage for Template:ROMANDATE. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
{{ROMANDATE}} gives the date in the Roman calendar.
The given year is in Ab urbe condita. The individual units of time are returned by {{ROMANDATE/year}}, {{ROMANDATE/month}}, and {{ROMANDATE/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
{{ROMANDATE|format=format|year|month|day}}
- Examples
{{ROMANDATE}}→ ante diem XII Kalendas Octobres, MMDCCLXXIX{{ROMANDATE|format=DMY}}→ ante diem XII Kalendas Octobres, MMDCCLXXIX{{ROMANDATE|format=MDY}}→ Octobres ante diem XII Kalendas, MMDCCLXXIX{{ROMANDATE|format=YMD}}→ MMDCCLXXIX, Octobres ante diem XII Kalendas{{ROMANDATE|format=DM}}→ ante diem XII Kalendas Octobres{{ROMANDATE|format=MD}}→ Octobres ante diem XII Kalendas{{ROMANDATE|1945|11|12}}→ ante diem III Kalendas Novembres, MMDCXCVIII{{ROMANDATE|format=YMD|1945|11|12}}→ MMDCXCVIII, Novembres ante diem III Kalendas
Individual units of time
[edit]- The current year:
{{ROMANDATE/year}}→ MMDCCLXXIX - The current month:
{{ROMANDATE/month}}→ Octobres - The current day of month:
{{ROMANDATE/day}}→ ante diem XII Kalendas
Source
[edit]- Dershowitz, Nachum; Reingold, Edward M. (2008). Calendrical Calculations (Third ed.). Cambridge: Cambridge University Press. ISBN 9780521885409. OCLC 144768713.