-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
wrong calculation of .ceil() and .floor() #145
Comments
Thanks, that does look like a bug.
To be sure, you'd expect the following output, is that right ?
epoch 2022-10-03T17:42:00 UTC
…On Mon, Oct 3, 2022, 11:42 Romeo Disca ***@***.***> wrote:
let epoch = Epoch::now().unwrap();//::from_unix_milliseconds(600f64);
println!("epoch {}", epoch);
println!("epoch {}", epoch .ceil(3.minutes()));
creates
epoch 2022-10-03T17:39:44.710711956 UTC
epoch 2022-10-03T17:41:23 UTC
—
Reply to this email directly, view it on GitHub
<#145>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEZV2AOMGPGVEW2RXSMHETWBMLITANCNFSM6AAAAAAQ3Z6A4M>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
yes, it should be the appropriate fraction with seconds to zero |
The source of the issue is that the I'm implementing a fix now that adds a ceil and floor function with in a given time system. |
@thinkrapido The bug is fixed in 3.5.0 in the way you wanted it to be fixed. |
creates
The text was updated successfully, but these errors were encountered: