|
Time Shield Library
C++ library for working with time
|
Helpers for computing workday-related timestamps. More...
Go to the source code of this file.
Namespaces | |
| namespace | time_shield |
| Main namespace for the Time Shield library. | |
Functions | |
| TIME_SHIELD_CONSTEXPR int | time_shield::first_workday_day (year_t year, int month) noexcept |
| Finds the first workday number within a month. | |
| TIME_SHIELD_CONSTEXPR int | time_shield::last_workday_day (year_t year, int month) noexcept |
| Finds the last workday number within a month. | |
| TIME_SHIELD_CONSTEXPR int | time_shield::count_workdays_in_month (year_t year, int month) noexcept |
| Counts workdays within a month. | |
| TIME_SHIELD_CONSTEXPR int | time_shield::workday_index_in_month (year_t year, int month, int day) noexcept |
| Returns workday position in month starting from 1. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_first_workday_of_month (year_t year, int month, int day) noexcept |
| Checks whether date is the first workday of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_first_workdays_of_month (year_t year, int month, int day, int count) noexcept |
| Checks if date falls within the first N workdays of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_last_workday_of_month (year_t year, int month, int day) noexcept |
| Checks whether date is the last workday of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_last_workdays_of_month (year_t year, int month, int day, int count) noexcept |
| Checks if date falls within the last N workdays of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_first_workday_of_month (ts_t ts) noexcept |
| Checks whether timestamp is the first workday of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_first_workday_of_month_ms (ts_ms_t ts_ms) noexcept |
| Checks whether millisecond timestamp is the first workday of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_first_workdays_of_month (ts_t ts, int count) noexcept |
| Checks if timestamp falls within the first N workdays of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_first_workdays_of_month_ms (ts_ms_t ts_ms, int count) noexcept |
| Checks if millisecond timestamp falls within the first N workdays of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_last_workday_of_month (ts_t ts) noexcept |
| Checks whether timestamp is the last workday of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_last_workday_of_month_ms (ts_ms_t ts_ms) noexcept |
| Checks whether millisecond timestamp is the last workday of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_last_workdays_of_month (ts_t ts, int count) noexcept |
| Checks if timestamp falls within the last N workdays of the month. | |
| TIME_SHIELD_CONSTEXPR bool | time_shield::is_within_last_workdays_of_month_ms (ts_ms_t ts_ms, int count) noexcept |
| Checks if millisecond timestamp falls within the last N workdays of the month. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::start_of_first_workday_month (year_t year, int month) noexcept |
| Returns start-of-day timestamp for the first workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::start_of_first_workday_month_ms (year_t year, int month) noexcept |
| Returns start-of-day millisecond timestamp for the first workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::start_of_first_workday_month (ts_t ts=time_shield::ts()) noexcept |
| Returns start-of-day timestamp for the first workday of month derived from timestamp. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::start_of_first_workday_month_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
| Returns start-of-day millisecond timestamp for the first workday of month derived from millisecond timestamp. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::end_of_first_workday_month (year_t year, int month) noexcept |
| Returns end-of-day timestamp for the first workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::end_of_first_workday_month_ms (year_t year, int month) noexcept |
| Returns end-of-day millisecond timestamp for the first workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::end_of_first_workday_month (ts_t ts=time_shield::ts()) noexcept |
| Returns end-of-day timestamp for the first workday of month derived from timestamp. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::end_of_first_workday_month_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
| Returns end-of-day millisecond timestamp for the first workday of month derived from millisecond timestamp. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::start_of_last_workday_month (year_t year, int month) noexcept |
| Returns start-of-day timestamp for the last workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::start_of_last_workday_month_ms (year_t year, int month) noexcept |
| Returns start-of-day millisecond timestamp for the last workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::start_of_last_workday_month (ts_t ts=time_shield::ts()) noexcept |
| Returns start-of-day timestamp for the last workday of month derived from timestamp. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::start_of_last_workday_month_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
| Returns start-of-day millisecond timestamp for the last workday of month derived from millisecond timestamp. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::end_of_last_workday_month (year_t year, int month) noexcept |
| Returns end-of-day timestamp for the last workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::end_of_last_workday_month_ms (year_t year, int month) noexcept |
| Returns end-of-day millisecond timestamp for the last workday of month. | |
| TIME_SHIELD_CONSTEXPR ts_t | time_shield::end_of_last_workday_month (ts_t ts=time_shield::ts()) noexcept |
| Returns end-of-day timestamp for the last workday of month derived from timestamp. | |
| TIME_SHIELD_CONSTEXPR ts_ms_t | time_shield::end_of_last_workday_month_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept |
| Returns end-of-day millisecond timestamp for the last workday of month derived from millisecond timestamp. | |
Helpers for computing workday-related timestamps.
Definition in file workday_conversions.hpp.