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>
Download (untitled) / with headers
text/plain 833b
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
Download (untitled) / with headers
text/plain 948b
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


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.