On Mon, 24 Mar 2003, Joshua Hoblitt wrote:
> I've given this some thought and I do indeed agree with your point of
> view. However now I think that there is a need for a separate module
> that accepts all same inputs as MySQL. :)
>
> My usage pattern involves a lot of massaging timestamps (often from flat
> files) before stuffing it into a DB. This timestamps are almost always
> in a format the MySQL will understand but not necessarily in the
> 'strict' Format.
>
> --
> while ( <FILE> ) {
> chomp;
> my( $time_hst, ... ) = split / /;
>
> my $date = Date::Manip::ParseDate( $time_hst );
If you want something like Date::Manip, how about writing
Date::Parse::General or something like that, which would parse many
different date formats (kind of like Graham Barr's Date::Parse or
HTTP::Date, or Date::Manip itself)?
I think if you wrote something that parsed everything MySQL did, calling
it something with MySQL in the name would actually be a misnomer, since
it'd just be a generic "many format" parser.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/