in reply to Converting MySQL datetime values to DateTime objects
There's also a parse_date() and a parse_timestamp() method.my $dt = DateTime::Format::MySQL->parse_datetime( '2003-01-16 23:12:01 +' );
In general, if you really find something missing from a module, try contacting the author of that module first. You say you can write the function you want; send him that for inclusion in the next version of the module. Writing your own module just for that small bit of functionality you're missing should only be your last solution, when all else fails.
For datetime modules you can also send your ideas, additions and patches to the datetime@perl.org mailing list. They can help you to get your code in the correct DateTime module or to write your own DateTime module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting MySQL datetime values to DateTime objects
by jonadab (Parson) on Jul 14, 2003 at 21:47 UTC |