Module gregorian

Module gregorian 

Source
Expand description

The Gregorian calendar

Constants§

DAYS_IN_400_YEAR_CYCLE
The number of days in the 400 year cycle.

Functions§

day_before_year
Calculates the day before Jan 1 of year.
days_before_month
The number of days in this year before this month starts
easter
Calculates the date of Easter in the given year
fixed_from_gregorian
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/1ee51ecfaae6f856b0d7de3e36e9042100b4f424/calendar.l#L1167-L1189
gregorian_from_fixed
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/1ee51ecfaae6f856b0d7de3e36e9042100b4f424/calendar.l#L1525-L1540
is_leap_year
Whether or not year is a leap year
year_day
Calculates the month/day from the 1-based day of the year
year_from_fixed
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/1ee51ecfaae6f856b0d7de3e36e9042100b4f424/calendar.l#L1191-L1217