Skip to content

Conversation

@eldakesh-ms
Copy link
Contributor

@eldakesh-ms eldakesh-ms commented Apr 19, 2021

Special specifiers for duration are j q Q.

Otherwise duration is very similar to hh_mm_ss except that times are
interpreted as time from midnight. I thought this would mean that
negative times are yesterday, but we just append a - instead, which
means we should round towards zero (i.e. truncate or duration_cast)
instead of flooring to a day when computing hh/mm/ss.

Other behavior is pretty simple.

Special specifiers for duration are `j q Q`.

Otherwise duration is very similar to `hh_mm_ss` except that times are
interpreted as time from midnight. I thought this would mean that
negative times are yesterday, but we just append a `-` instead, which
means we should round instead of flooring to a day when computing
hh/mm/ss.

Other behavior is pretty simple.
@eldakesh-ms eldakesh-ms requested a review from a team as a code owner April 19, 2021 21:29
@StephanTLavavej StephanTLavavej added chrono C++20 chrono cxx20 C++20 feature labels Apr 19, 2021
@eldakesh-ms eldakesh-ms merged commit 229dfde into microsoft:chronat2 Apr 19, 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.

2 participants