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.
Info:
- Release: 0.2 2026-09-21
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. |
| french_leap_year (f_year) | True if f_year is an astronomical French Revolutionary leap year. |
| arithmetic_french_leap_year (f_year) | True if f_year is an arithmetic French Revolutionary leap year. |
| 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. Usesround_half_to_evento match Lisp’sround.Parameters:
- date number Fixed date.
Returns:
-
table
{year, month, day}
- french_leap_year (f_year)
-
True if
f_yearis an astronomical French Revolutionary leap year.Parameters:
- f_year number French Revolutionary year.
Returns:
-
boolean
- arithmetic_french_leap_year (f_year)
-
True if
f_yearis an arithmetic French Revolutionary leap year.Parameters:
- f_year number French Revolutionary year.
Returns:
-
boolean
- 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}