Module calendrica-french-revolutionary

French Revolutionary calendar conversions (astronomical and arithmetic).

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_french (f_date) Fixed date of astronomical French Revolutionary date `f_date`.
french_from_fixed (date) Astronomical French Revolutionary date {year, month, day} for fixed `date`.
fixed_from_arithmetic_french (f_date) Fixed date of Arithmetic French Revolutionary date `f_date`.
arithmetic_french_from_fixed (date) Arithmetic French Revolutionary date {year, month, day} of fixed `date`.


Functions

fixed_from_french (f_date)
Fixed date of astronomical French Revolutionary date `f_date`.

Parameters:

  • f_date table French date {year, month, day}.

Returns:

    number Fixed date.
french_from_fixed (date)
Astronomical French Revolutionary date {year, month, day} for fixed `date`. Uses `round_half_to_even` to match Lisp's `round`.

Parameters:

  • date number Fixed date.

Returns:

    table {year, month, day}
fixed_from_arithmetic_french (f_date)
Fixed date of Arithmetic French Revolutionary date `f_date`.

Parameters:

  • f_date table Arithmetic French date {year, month, day}.

Returns:

    number Fixed date.
arithmetic_french_from_fixed (date)
Arithmetic French Revolutionary date {year, month, day} of fixed `date`.

Parameters:

  • date number Fixed date.

Returns:

    table {year, month, day}
generated by LDoc 1.5.0 Last updated 2026-06-18 11:45:28