Expand description
Utility functions, including updating time zone information.
Modulesยง
- local_
offset ๐ปDeprecated local-offset - range_
validated ๐ - Versions of functions that are optimized for when the year has already been range-validated.
Enumsยง
- Date
Adjustment ๐ - Whether to adjust the date, and in which direction. Useful when implementing arithmetic.
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.
- days_
in_ year_ month Deprecated - Get the number of days in the month of a given year.
- is_
leap_ year - Returns if the provided year is a leap year in the proleptic Gregorian calendar. Uses astronomical year numbering.
- refresh_
tz local-offset - Attempt to update time zone information from the system.
- refresh_
tz_ โunchecked local-offset - Update time zone information from the system.
- weeks_
in_ year - Get the number of weeks in the ISO year.