Module calendrica-egyptian-armenian
Egyptian and Armenian calendar conversions.
Ported from "Calendrical Calculations" (4th edition) by Nachum Dershowitz and Edward M. Reingold. Original Lisp code (CALENDRICA 4.0) is Apache 2.0 licensed.
Functions
| fixed_from_egyptian (e_date) | Fixed date of Egyptian date `e_date`. |
| egyptian_from_fixed (date) | Egyptian date {year, month, day} equivalent to fixed `date`. |
| fixed_from_armenian (a_date) | Fixed date of Armenian date `a_date`. |
| armenian_from_fixed (date) | Armenian date {year, month, day} equivalent to fixed `date`. |
Functions
- fixed_from_egyptian (e_date)
-
Fixed date of Egyptian date `e_date`.
Parameters:
- e_date table Egyptian date {year, month, day}.
Returns:
-
number
Fixed date.
- egyptian_from_fixed (date)
-
Egyptian date {year, month, day} equivalent to fixed `date`.
Parameters:
- date number Fixed date.
Returns:
-
table
{year, month, day}
- fixed_from_armenian (a_date)
-
Fixed date of Armenian date `a_date`.
Same structure as the Egyptian calendar with a different epoch.
Parameters:
- a_date table Armenian date {year, month, day}.
Returns:
-
number
Fixed date.
- armenian_from_fixed (date)
-
Armenian date {year, month, day} equivalent to fixed `date`.
Parameters:
- date number Fixed date.
Returns:
-
table
{year, month, day}