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
There is a potential alternate behavior of the TimeSpans interface for Periods that I think could arguably make more sense: start(period) is 0 and duration(period) == period. I have on at least one occasion forgotten about the one-nanosecond behavior and thought it worked this way. I think it would actually make your two time_from_index examples behave identically.
TimeSpans.jl/src/TimeSpans.jl
Lines 105 to 119 in eb32796
I get that it's so that TimePeriod's act like a 1-ns range around that time, but I think it's overly error prone. E.g.
gives 1 Nanosecond always, where the intended code is
IMO in this case a clear error from the first example would be preferable.
The text was updated successfully, but these errors were encountered: