On Tue, Oct 03, 2006 at 01:57:29PM -0700, Bill Moseley wrote:
> 
> 
> $ cat dt.pl
> use strict;
> use warnings;
> use DateTime::Format::DateManip;
> 
> my $dt = DateTime::Format::DateManip->parse_datetime( shift || die );
> print $dt->strftime( '%a, %b %e %Y %l:%M %p %Z' );
> 
> 
> $ perl -l dt.pl 'Oct 3, 2006 9am'
> Tue, Oct  3 2006  9:00 AM PDT
> 
> $ perl -l dt.pl 'Dec 3, 2006 9am'
> Sun, Dec  3 2006  8:00 AM PST

Date::Manip's author replied that Date::Manip just doesn't handle
daylight saving time correctly.  Further, there's no way to detect
when it's adjusting based on DST, so it's not easy to catch and fix.
Kind of renders the module unusable for parsing dates that span
daylight saving time.

Are there any other modules that come close to Data::Manip's parsing
abilities?

-- 
Bill Moseley
[EMAIL PROTECTED]

Reply via email to