|
Time Shield Library
C++ library for working with time
|
Conversions and utilities for ISO week dates (ISO 8601). 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::iso_weekday_from_weekday (Weekday weekday) noexcept |
| Convert Weekday enum to ISO weekday (Mon=1 .. Sun=7). | |
| template<class Y = year_t, class M = Month, class D = int> | |
| TIME_SHIELD_CONSTEXPR int | time_shield::iso_weekday_of_date (Y year, M month, D day) |
| Get ISO weekday for a calendar date. | |
| template<class Y = year_t, class M = Month, class D = int> | |
| IsoWeekDateStruct | time_shield::to_iso_week_date (Y year, M month, D day) |
| Convert calendar date to ISO week date. | |
| IsoWeekDateStruct | time_shield::to_iso_week_date (const DateStruct &date) |
| Convert DateStruct to ISO week date. | |
| template<class T = ts_t> | |
| IsoWeekDateStruct | time_shield::to_iso_week_date (T ts) |
| Convert timestamp to ISO week date. | |
| int | time_shield::iso_weeks_in_year (year_t iso_year) |
| Calculate number of ISO weeks in a year. | |
| bool | time_shield::is_valid_iso_week_date (year_t iso_year, int week, int weekday) |
| Validate ISO week date components. | |
| DateStruct | time_shield::iso_week_date_to_date (const IsoWeekDateStruct &iso_date) |
| Convert ISO week date to calendar date. | |
| std::string | time_shield::format_iso_week_date (const IsoWeekDateStruct &iso_date, bool extended=true, bool include_weekday=true) |
| Format ISO week date to string. | |
| bool | time_shield::parse_iso_week_date (const char *input, std::size_t length, IsoWeekDateStruct &iso_date) noexcept |
| Parse ISO week date string buffer. | |
| bool | time_shield::parse_iso_week_date (const std::string &input, IsoWeekDateStruct &iso_date) noexcept |
| Parse ISO week date string. | |
| bool | time_shield::try_parse_iso_week_date (const char *input, std::size_t length, IsoWeekDateStruct &iso_date) noexcept |
| Alias for parse_iso_week_date. | |
| bool | time_shield::try_parse_iso_week_date (const std::string &input, IsoWeekDateStruct &iso_date) noexcept |
| Alias for parse_iso_week_date, std::string overload. | |
Conversions and utilities for ISO week dates (ISO 8601).
This file provides helpers to convert between calendar dates, timestamps, and ISO week dates, as well as formatting and parsing helpers for ISO week-date strings.
Definition in file iso_week_conversions.hpp.