-
Notifications
You must be signed in to change notification settings - Fork 533
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
Truncating a timestamp close to EPOCH fails #1375
Comments
I'd be happy to review a PR -- I probably won't have time to work on this myself. |
It's not urgent for me but I think I will find time for it |
To be honest in my opinion the API and approach in the But we would need to have an alternative before it can be deprecated. |
Why? If we think this API is silly or wrong or dangerous, we could deprecate it without providing an alternative. Does the time crate provide this functionality? |
There are some cases where it works and gives correct results. For example rounding or truncating a
Maybe you are right. It does not really feel like an inconvenience yet, but we can expect more issues like this.
It doesn't seem to. |
Another issue with |
Due to this check in
duration_truc
:https://github.com/chronotope/chrono/blob/main/src/round.rs#L221-L223
Expected behaviour: I should be able to truncate the timestamp to 0
The text was updated successfully, but these errors were encountered: