lua-calendrica

# 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.

### Info:

- Release: 0.1 2026-07-19

## 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}

generated by LDoc 1.5.0 Last updated 2026-07-19 03:28:25