Skip Menu |
Report information
Id: 127004
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at] fysh.org
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [LTA] DateTime.new(Str) limited year range
From: Zefram <zefram [...] fysh.org>
Date: Wed, 23 Dec 2015 22:16:09 +0000
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 436b
DateTime.new on a Str input only accepts years in the range 0 to 9999 inclusive. The class is actually capable of handling year numbers outside that range, in both directions, 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.) -zefram
To: "Zefram (via RT)" <perl6-bugs-followup [...] perl.org>
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Date: Thu, 24 Dec 2015 00:50:59 +0100
Subject: Re: [perl #127004] [LTA] DateTime.new(Str) limited year range
Download (untitled) / with headers
text/plain 841b
Show quoted text
> On 23 Dec 2015, at 23:16, Zefram (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Zefram > # Please include the string: [perl #127004] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=127004 > > > > DateTime.new on a Str input only accepts years in the range 0 to 9999 > inclusive. The class is actually capable of handling year numbers outside > that range, in both directions, 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 895546990f6001a5999ef , tests added with 2763fa2f07970913da Can be closed. Liz
To: Elizabeth Mattijsen via RT <perl6-bugs-followup [...] perl.org>
From: Zefram <zefram [...] fysh.org>
Date: Thu, 24 Dec 2015 00:04:18 +0000
Subject: Re: [perl #127004] [LTA] DateTime.new(Str) limited year range
Download (untitled) / with headers
text/plain 227b
Elizabeth Mattijsen via RT wrote: Show quoted text
>Fixed with 895546990f6001a5999ef
With that edit, some invalid year representations are now accepted on input, such as "-0000" and "12345". They add to the scope of [perl #127002]. -zefram


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org