Skip Menu |
 

This queue is for tickets about the TimeDate CPAN distribution.

Report information
The Basics
Id: 70650
Status: open
Priority: 0/
Queue: TimeDate

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 1.20



Subject: Date::Parse is able to parse ludicrous dates
Download (untitled) / with headers
text/plain 260b
Looking at the documentation I have no idea why this program works, or what the value is that it prints out. A parser should do syntax checking and not make undocumented assumptions. #!/usr/bin/perl use Date::Parse; $time = str2time('1'); print "$time\n";
Subject: Re: [rt.cpan.org #70650] Date::Parse is able to parse ludicrous dates
Date: Wed, 31 Aug 2011 14:27:56 -0500
To: bug-TimeDate [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
Download (untitled) / with headers
text/plain 188b
Date::parse is all about making assumptions to guess the date from the string. If you want to parse dates in a particular format then I would suggest looking at DateTime::Format modules.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.