|
constexpr auto | operator<=> (const Fixed &o) const |
| Comparison method.
|
|
constexpr auto | operator== (const Fixed &o) const -> bool |
|
constexpr auto | operator!= (const Fixed &o) const -> bool |
|
constexpr auto | operator<= (const Fixed &o) const -> bool |
|
constexpr auto | operator>= (const Fixed &o) const -> bool |
|
constexpr auto | operator< (const Fixed &o) const -> bool |
|
constexpr auto | operator> (const Fixed &o) const -> bool |
|
constexpr Fixed | to_fixed () const |
| Day Calendar System contract.
|
|
constexpr DayOfWeek | day_of_week () const |
| Gets the day of week for a date.
|
|
constexpr Fixed | add_days (const i32 days) const |
| Adds n days to a date.
|
|
constexpr Fixed | sub_days (const i32 days) const |
| Subtracts n days from a date.
|
|
constexpr i32 | day_difference (const Fixed &other) const |
| Difference between two dates in days.
|
|
constexpr Fixed | nth_week_day (const i32 n, const DayOfWeek k) const |
| Gets the nth day of week.
|
|
constexpr Fixed | day_of_week_before (const DayOfWeek k) const |
| Gets the day of week before current date.
|
|
constexpr Fixed | day_of_week_after (const DayOfWeek k) const |
| Gets the day of week after the current date.
|
|
constexpr Fixed | day_of_week_nearest (const DayOfWeek k) const |
| Gets the day of week nearest to the current date.
|
|
constexpr Fixed | day_of_week_on_or_before (const DayOfWeek k) const |
| Gets the day of week on or before the current date.
|
|
constexpr Fixed | day_of_week_on_or_after (const DayOfWeek k) const |
| Gets the day of week on or after the current date.
|
|
constexpr Fixed | first_week_day (const DayOfWeek k) const |
| Gets the first week day in a month (assuming current date is the start of the month)
|
|
constexpr Fixed | last_week_day (const DayOfWeek k) const |
| Gets the last week day in a month (assuming current date is the end of the month)
|
|
auto | positions_in_range (Allocator &alloc, const Fixed &end, i32 pthMoment, i32 cDayCycle, i32 delta) const -> Result< mtcore::ArrayList< Fixed >, AllocationError > |
| Return the cyclic positions in the range of the current date to the end date (exclusive) Used to collect all occurrences of events (e.g.
|
|
constexpr i32 | day_of_m_cycle (i32 m, i32 offset) const |
| Gets which day the current date occurs in an m-length ("month") cycle.
|
|
constexpr auto | kth_day_of_m_cycle_on_or_before (i32 k, i32 m, i32 offset) const noexcept -> Fixed |
| Finds the kth day of the m-cycle that occurs on or before the current date.
|
|
constexpr auto | kth_day_of_m_cycle_before (i32 k, i32 m, i32 offset) const noexcept -> Fixed |
| Finds the kth day of the m-cycle that occurs before the current date.
|
|
constexpr auto | kth_day_of_m_cycle_on_or_after (i32 k, i32 m, i32 offset) const noexcept -> Fixed |
| Finds the kth day of the m-cycle that occurs on or after the current date.
|
|
constexpr auto | kth_day_of_m_cycle_after (i32 k, i32 m, i32 offset) const noexcept -> Fixed |
| Finds the kth day of the m-cycle that occurs after the current date.
|
|
constexpr auto | kth_day_of_m_cycle_nearest (i32 k, i32 m, i32 offset) const noexcept -> Fixed |
| Finds the kth day of the m-cycle that occurs nearest the current date.
|
|
Base calendar system tracking the number of days since its epoch.
Used as common ground for conversions between calendar systems.
Definition at line 42 of file fixed.hpp.