Skip to content

Conversation

@eldakesh-ms
Copy link
Contributor

Thanks to @MattStephanson and @statementreply on discord for mentioning these edge cases.

I originally thought that you can't get a day from month_day_last, but
it clearly makes sense, for most months. I changed some machinery around
so that we can always intercept a specifier, which means that we need to
do manual checking in the writer for localization.

This PR is more to illustrate how a specifier may be intercepted, and
that testing need only be done for specific types.

Thanks to matt and stat on discord for mentioning these edge cases.

I originally thought that you can't get a day from `month_day_last`, but
it clearly makes sense, for most months. I changed some machinery around
so that we can always intercept a specifier, which means that we need to
do manual checking in the writer for localization.

This PR is more to illustrate how a specifier may be intercepted, and
that testing need only be done for specific types.
@eldakesh-ms eldakesh-ms requested a review from a team as a code owner April 16, 2021 17:06
@eldakesh-ms eldakesh-ms merged commit 0814ca2 into microsoft:chronat2 Apr 16, 2021
@StephanTLavavej StephanTLavavej added chrono C++20 chrono cxx20 C++20 feature labels Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chrono C++20 chrono cxx20 C++20 feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants