Expand description
Utility functions.
Modules§
- range_
validated - Versions of functions that are optimized for when the year has already been range-validated.
Functions§
- days_
in_ month - Get the number of days in the month of a given year.
- days_
in_ month_ leap - Get the number of days in the month. The year does not need to be known, but whether the year is a leap year does.
- days_
in_ year - Get the number of calendar days in a given year.
- is_
leap_ year - Returns if the provided year is a leap year in the proleptic Gregorian calendar. Uses astronomical year numbering.
- weeks_
in_ year - Get the number of weeks in the ISO year.