lua-calendrica

# Module `calendrica-akan`

Akan day-name calendar.

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

akan_name_from_fixed (date) | Akan day name for fixed `date`.
akan_day_name (n) | The n-th name of the 42-day Akan cycle.
akan_name_difference (a_name1, a_name2) | Days from `a_name1` to the next occurrence of `a_name2` in the Akan cycle.
akan_day_name_on_or_before (name, date) | Latest fixed date on or before `date` with the given Akan `name`.

## Functions

akan_name_from_fixed (date)
  Akan day name for fixed `date`.

  ### Parameters:

  - date number Fixed date.

  ### Returns:

  table {prefix, stem}
akan_day_name (n)
  The n-th name of the 42-day Akan cycle.

  ### Parameters:

  - n number Position in cycle.

  ### Returns:

  table {prefix, stem}
akan_name_difference (a_name1, a_name2)
  Days from `a_name1` to the next occurrence of `a_name2` in the Akan cycle.

  ### Parameters:

  - a_name1 table Akan name {prefix, stem}.
  - a_name2 table Akan name {prefix, stem}.

  ### Returns:

  number Count (1..42).
akan_day_name_on_or_before (name, date)
  Latest fixed date on or before `date` with the given Akan `name`.

  ### Parameters:

  - name table Akan name {prefix, stem}.
  - date number Fixed date.

  ### Returns:

  number Fixed date.

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