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
Internally DateTime allows its seconds value to be any kind of numeric
value in the right range, but when producing Str output in ISO 8601
format it limits the displayed seconds value to integral microseconds.
It attempts to round accordingly, but it screws up by only rounding the
seconds value in isolation:
It produces invalid output like this whenever rounding up in the last
microsecond of a minute. (If there's a leap second, :second(60.9999999)
is rounded to ":61.000000".) The rounding ought to instead wrap the
seconds value and be carried to the minutes value, and to the hours if
the minutes wrap, and so on. Or from another point of view, one should
round the DateTime value, and then express the rounded DateTime exactly,
rather than round the expression.
Migrated from rt.perl.org#127005 (status was 'new')
Searchable as RT127005$
The text was updated successfully, but these errors were encountered: