# New Ticket Created by Alex Jakimenko
# Please include the string: [perl #125683]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125683 >
Code:
say DateTime.new('1994-05-03T00:00:00+99:99');
say DateTime.new('1994-05-03T00:00:00-99:99');
Result:
1994-05-03T00:00:00+100:39
1994-05-03T00:00:00-100:39
Both should produce an error. For example:
“hour out of range. Is: 99, should be in 0..^24” – -12..+14 are actually
used, should we allow +20?
“minute out of range. Is: 99, should be in 0..^60”.