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
We currently have several issues with leap seconds and I propose we add an interface exposing Rakudo's leap second tables (http://bit.ly/2aeGlIQ) to the user to allow for, say, a module, importing which would make the leap second table current, regardless of the version of the compiler used.
Issue #1: Fatality of code depends on compiler version
$ perl6-v2016.07 -e 'DateTime.new("2016-12-31T23:59:60"); say "lives"'
lives
$ perl6-v2016.06 -e 'DateTime.new("2016-12-31T23:59:60"); say "lives"'
Second out of range. Is: 60, should be in 0..^60; There is no leap second on UTC 2016-12-31
in block <unit> at -e line 1
Issue #2: Different Instant.from-posix results, depending on compiler version:
[lizmat] all for exposing the dates / posix values but would probably not be in favour of allowing it to be added upon rather, so it can serve as a basis of a module that *does* allow adding ?
Migrated from rt.perl.org#128752 (status was 'new')
Searchable as RT128752$
The text was updated successfully, but these errors were encountered: