mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Introduced full weekday and month names
* The standardized version of this library has std::chrono::January and std::chrono::Sunday in place of std::chrono_literals::jan and std::chrono_literals::sun. Compatible names added to namespace date to ease transition from this lib to std::chrono. The old names are retained for backwards compatibility.
This commit is contained in:
parent
e6941697eb
commit
700489e475
@ -1807,6 +1807,27 @@ CONSTDATA date::weekday sat{6u};
|
||||
} // inline namespace literals
|
||||
#endif
|
||||
|
||||
CONSTDATA date::month January{1};
|
||||
CONSTDATA date::month February{2};
|
||||
CONSTDATA date::month March{3};
|
||||
CONSTDATA date::month April{4};
|
||||
CONSTDATA date::month May{5};
|
||||
CONSTDATA date::month June{6};
|
||||
CONSTDATA date::month July{7};
|
||||
CONSTDATA date::month August{8};
|
||||
CONSTDATA date::month September{9};
|
||||
CONSTDATA date::month October{10};
|
||||
CONSTDATA date::month November{11};
|
||||
CONSTDATA date::month December{12};
|
||||
|
||||
CONSTDATA date::weekday Sunday{0u};
|
||||
CONSTDATA date::weekday Monday{1u};
|
||||
CONSTDATA date::weekday Tuesday{2u};
|
||||
CONSTDATA date::weekday Wednesday{3u};
|
||||
CONSTDATA date::weekday Thursday{4u};
|
||||
CONSTDATA date::weekday Friday{5u};
|
||||
CONSTDATA date::weekday Saturday{6u};
|
||||
|
||||
// weekday_indexed
|
||||
|
||||
CONSTCD11
|
||||
|
Loading…
x
Reference in New Issue
Block a user