in reply to Re: Date conversion with Class::DBI
in thread Date conversion with Class::DBI
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
M-x auto-bs-mode
|
---|
In Section
Seekers of Perl Wisdom