Skip Menu |

This queue is for tickets about the hwd CPAN distribution.

Report information
The Basics
Id: 18104
Status: open
Priority: 0/
Queue: hwd

People
Owner: Nobody in particular
Requestors: rldiss [...] yahoo.com
Cc:
AdminCc:

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



Subject: Suggestion: improve HWD::Work's understanding of common date formats
Date: Fri, 10 Mar 2006 09:39:18 -0800 (PST)
To: bugs-hwd [...] rt.cpan.org
From: Bob Diss <rldiss [...] yahoo.com>
HWD::Work currently parses dates through the aid of DateTime::Strptime(), using an implied pattern of YYYY-MM-DD. This prevents it from understanding "02/03/2006". The system would be easier to use if it was more flexibile in the date format it accepted, such as: MM-DD-YY MM/DD/YY MM-DD-YYYY MM/DD/YYYY YYYY-MM-DD YYYY/MM/DD One may also consider adding support for MM/DD, assuming there was a way to derive the year consistently. When HWD files are used as historical references, it might not be appropriate to use the current year. Perhaps it's possible to fully specify a year earlier in the file, and let that become the default for these short-hand date formats. Show quoted text
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Fri Mar 10 12:39:31 2006, rldiss@yahoo.com wrote: Show quoted text
> HWD::Work currently parses dates through the aid of > DateTime::Strptime(), using an implied pattern of > YYYY-MM-DD. This prevents it from understanding > "02/03/2006". > > The system would be easier to use if it was more > flexibile in the date format it accepted, such as: > > MM-DD-YY > MM/DD/YY > > MM-DD-YYYY > MM/DD/YYYY > > YYYY-MM-DD > YYYY/MM/DD > > One may also consider adding support for MM/DD, > assuming there was a way to derive the year > consistently. When HWD files are used as historical > references, it might not be appropriate to use the > current year. Perhaps it's possible to fully specify > a year earlier in the file, and let that become the > default for these short-hand date formats. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com