Skip Menu |

This queue is for tickets about the DateTime-Format-Natural CPAN distribution.

Report information
The Basics
Id: 115737
Status: resolved
Priority: 0/
Queue: DateTime-Format-Natural

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.03_01



Subject: the "T" in an iso8601 date confuses things
I realize that a T-bearing ISO8601 date is hardly "natural" but: DB<1> use DateTime::Format::Natural DB<2> $f = DateTime::Format::Natural->new(time_zone => 'America/New_York') DB<3> p $f->parse_datetime('2016-06-19') 2016-06-19T00:00:00 DB<4> p $f->parse_datetime('2016-06-19T12') 2016-06-29T14:33:44 DB<5> p $f->parse_datetime('2016-06-19T12:12') 2016-06-29T14:33:48 DB<6> p $f->parse_datetime('2016-06-19T12:12:11') 2016-06-29T14:33:57 DB<7> p $f->parse_datetime('2016-06-19 12:12:11') 2016-06-19T12:12:11 DB<8> p $f->trace('2016-06-19 12:12:11') Weird! I'm not sure what's going on there. -- rjbs
Added in v1.03_01. Thanks!