> On 05 Jan 2016, at 02:25, Alex Jakimenko (via RT) > <perl6-bugs-follo...@perl.org> wrote: > > # New Ticket Created by Alex Jakimenko > # Please include the string: [perl #127161] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=127161 > > > > These are not working: > > Code: > say DateTime.new(‘2016-01-31T05:00:00Z’).earlier(months => -1) > > Result: > Month out of range. Is: 0, should be in 1..12 > in block <unit> at /tmp/CfLpbWf_RV line 1 > > Code: > say DateTime.new(‘2016-01-31T05:00:00Z’).later(months => -1) > > Result: > Month out of range. Is: 0, should be in 1..12 > in block <unit> at /tmp/jdJBjXGCdA line 1
$ 6 'say DateTime.new(‘2016-01-31T05:00:00Z’).earlier(months => -1)' 2016-02-29T05:00:00Z 6 'say DateTime.new(‘2016-01-31T05:00:00Z’).later(months => -1)' 2015-12-31T05:00:00Z Fixed with d80c728e257dbe17384c4 , test unfudged with 233d409 , can be closed. Liz