class year_month_day;
(since C++20)The class year_month_day
represents a specific year, month, and day. It is a field-based time point, with a resolution of std::chrono::days. std::chrono::years- and std::chrono::months-oriented arithmetic are supported directly. An implicit conversion to and from std::chrono::sys_days allows std::chrono::days-oriented arithmetic to be performed efficiently.
year_month_day
is a TriviallyCopyable StandardLayoutType.
Possible output:
Current Year: 2023, Month: 9, Day: 4 ymd: 2023-09-04
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4