atoomic / perl-TimeDate

time & date parsing and formatting perl library
http://search.cpan.org/dist/TimeDate/
1 stars 4 forks source link

Date::Parse returns year as day when given 'MONTH YEAR' [rt.cpan.org #53267] #2

Open atoomic opened 4 years ago

atoomic commented 4 years ago

Migrated from rt.cpan.org#53267 (status was 'new')

Requestors:

From notbenh@cpan.org on 2010-01-01 00:50:31 :

my ($ss,$mm,$hh,$day,$month,$year,$zone) = strptime('December 2009');

I know that this is a bit of a 'broken' usecase but, in short $day is 2009. My
expectation is that $day would be undef and $year = 2009.

test can be found here:
http://gist.github.com/266985

--
benh~