Hi Rick,

[snipped]

> 
> Yup, DateTime on CVS won't work. Which reminds me that I need to 
> supply Dave with another patch before he releases the new DateTime.
> 
> [Explaination: DateTime now requires a valid date. Strptime for 
> day-of-year initiates DateTime with a year=>$year month=>1 and 
> day=>$day-of-year]
> 

Well, at least you know about the problem.
I am now in the process of rewritting some perl CGI scripts
and was hoping I could use DateTime instead of the Date-Manip/Calc
modules and right now I need to parse a date!!

What I was going to do was something like this:

my $Strp = new DateTime::Format::Strptime(
                                pattern         => '%e-%B-%Y %T',
                                language        => 'English',
                                time_zone       => 'America/Los_Angeles',
                        );
                        
my $dt = $Strp->parse_datetime('18-jun-2003 10:07:38');

I really need to get a feel for all of the modules out there!!

Thanks Rick!!

Ron Hill

Reply via email to