Helpers for C++20 calendar.
Definition in file cpp_20_calendar.hpp.
Go to the source code of this file.
This graph shows which files directly or indirectly include this file:Namespaces | |
| namespace | utils |
| Utilities. | |
| namespace | utils::datetime |
| Date and time utilities. | |
Typedefs | |
| using | utils::datetime::Days = std::chrono::days |
| using | utils::datetime::DaysTimepoint = std::chrono::sys_days |
Functions | |
| constexpr std::chrono::days | utils::datetime::DaysBetweenYears (int from, int to) |
| Calculates the number of days between January 1, 00:00 of two years accounting for leap years. | |
| constexpr std::chrono::day | utils::datetime::DaysInMonth (int month, int year) |
| Get the number of days in the given month of a given year. | |