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