> On 24 Dec 2015, at 00:55, Zefram (via RT) <perl6-bugs-follo...@perl.org> > wrote: > > # New Ticket Created by Zefram > # Please include the string: [perl #127010] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=127010 > > > > Date.new on a Str input only accepts non-negative year numbers: > >> Date.new("-1234-01-01") > Invalid Date string '-1234-01-01'; use yyyy-mm-dd instead > in any at > /home/zefram/usr/rakudo/rakudo/install/share/perl6/runtime/./CORE.setting.moarvm:1 > in block <unit> at <unknown file>:1 > > The class is actually capable of handling negative year numbers, and > accepts them in numeric .new inputs. It would be more awesome, and not > at all difficult, to accept the full unlimited range of year numbers in > ISO 8601 string input. (Don't forget to apply the proper rules regarding > the use of sign characters.)
Fixed with fb475d22ba6d5507dd4db , test added with 7e5f5db4e12a07701c4da . Liz