![]() |
|
We don't bite newbies here... much | |
PerlMonks |
SPOPS tack (was: Date conversion with Class::DBI)by lachoy (Parson) |
on Jul 08, 2003 at 11:55 UTC ( #272245=note: print w/replies, xml ) | Need Help?? |
FWIW this is how SPOPS does it as well: using the SPOPS::Tool::DateConvert module you can convert to/from DateTime, Time::Piece, and Class::Date objects, specifying the format of the date as it's pulled from the database as a strptime string in the metadata. I do like the shortcuts you've used in your example... maybe I'll have to swipe that :-)
Chris
In Section
Seekers of Perl Wisdom
|
|