Expand description
Immutable Gregorian dates, stored as days since 1970-01-01. Public domain: 0001-01-01 through 9999-12-31. No clock is read here.
Constants§
Functions§
- add_
days - add_
months - add_
workdays - Weekdays only, in constant time even for huge offsets. The starting date is not counted. A zero offset leaves even a weekend unchanged.
- add_
workdays_ with_ holidays - Holidays must be sorted, unique and weekdays. Each crossed holiday is visited once, extending the target by one weekday in the chosen direction.
- add_
years - end_
of_ month - format
- from_
civil - Days since 1970-01-01 for a year, month (1–12) and day (1–31).
- from_
parts - from_
unix_ seconds - parse
- Exactly ten ASCII bytes. Validate before doing any calendar arithmetic.
- start_
of_ month - to_
civil - Year, month and day of a day number.
- valid
- weekday
- 0 = Monday … 6 = Sunday.