|
CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
|
Namespaces | |
| namespace | cache |
| namespace | hash |
| namespace | ymd_operator |
Concepts | |
| concept | YearConvertible |
| An integral year of at most 64 value bits, a floating-point year, or a chrono year. | |
| concept | DaysConvertible |
| A type std::chrono::days can be built from — what the operators below shift by. | |
Functions | |
| constexpr auto | checked_year (const int32_t year) -> std::chrono::year |
| Converts an integer year to std::chrono::year, rejecting what narrowing would alias. | |
| constexpr auto | to_ymd (const YearConvertible auto year, const uint32_t month, const uint32_t day) -> std::chrono::year_month_day |
| Converts the input year, month, and date to a std::chrono::year_month_day. | |
| constexpr auto | from_ymd (const std::chrono::year_month_day &ymd) -> std::tuple< int32_t, uint32_t, uint32_t > |
| Converts the input std::chrono::year_month_day to a year, month, and date. | |
|
nodiscardconstexpr |
Converts an integer year to std::chrono::year, rejecting what narrowing would alias.
| year | The original integer year. |
| std::invalid_argument | If year is outside [std::chrono::year::min(), std::chrono::year::max()]; the diagnostic names the original integer. |
|
nodiscardconstexpr |
Converts the input std::chrono::year_month_day to a year, month, and date.
|
nodiscardconstexpr |
Converts the input year, month, and date to a std::chrono::year_month_day.
| std::invalid_argument | if the original year is not a representable whole year, or month/day cannot be represented unchanged by their chrono fields. |