You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Time + Duration (short for [NaiveTime::overflowing_add_signed](https://docs.rs/chrono/0.4.26/chrono/naive/struct.NaiveTime.html#method.overflowing_add_signed)):
03:00:00 + 1s = 03:00:01.
03:00:59 + 60s = 03:02:00.
03:00:59 + 1s = 03:01:00.
03:00:60 + 1s = 03:01:00. Note that the sum is identical to the previous.
03:00:60 + 60s = 03:01:59.
03:00:60 + 61s = 03:02:00.
03:00:60.1 + 0.8s = 03:00:60.9.
All examples make sense, except 03:00:59 + 60s = 03:02:00. which, given that no operand is a leap second, should be 03:01:59, and in fact, that's what's reported in the playground:
Happy to follow up with a PR if this is a true positive
The text was updated successfully, but these errors were encountered:
The current documentation (https://docs.rs/chrono/0.4.26/chrono/naive/struct.NaiveTime.html#date-and-time-arithmetics) lists the following examples for the handling of leap seconds:
All examples make sense, except
03:00:59 + 60s = 03:02:00.
which, given that no operand is a leap second, should be03:01:59
, and in fact, that's what's reported in the playground:Happy to follow up with a PR if this is a true positive
The text was updated successfully, but these errors were encountered: