Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICU: Store time in second resolution #222

Merged
merged 1 commit into from Feb 21, 2024

Conversation

Flamefire
Copy link
Collaborator

ICU was the only backend storing subseconds in its calendar and hence reported fractional times in date_time::time()
However outside of date_time::time(floor(time)) there was no way setting those milli/nanoseconds.
This leads to unexpected behavior for comparisons of seemingly identical time points, especially as it depends on the backend.

Closes #221

ICU was the only backend storing subseconds in its calendar and hence
reported fractional times in `date_time::time()`
However outside of `date_time::time(floor(time))` there was no way
setting those milli/nanoseconds.
This leads to unexpected behavior for comparisons of seemingly identical
time points, especially as it depends on the backend.

Closes #221
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (741bf1d) 95.72% compared to head (1d03d20) 95.70%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #222      +/-   ##
===========================================
- Coverage    95.72%   95.70%   -0.02%     
===========================================
  Files          116      116              
  Lines         9937     9946       +9     
===========================================
+ Hits          9512     9519       +7     
- Misses         425      427       +2     
Files Coverage Δ
src/boost/locale/icu/date_time.cpp 92.56% <100.00%> (+0.12%) ⬆️
test/test_date_time.cpp 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 741bf1d...1d03d20. Read the comment docs.

@Flamefire Flamefire merged commit 668a8bc into develop Feb 21, 2024
47 of 48 checks passed
@Flamefire Flamefire deleted the remove-subseconds-from-datetime branch February 21, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

date_time created with decimals
1 participant