in reply to Date conversion with Class::DBI
I use the has_a relationship using the Time::Piece::MySQL module which will do the formatting and stringifying for you.
use Time::Piece::MySQL; __PACKAGE__->has_a(created => 'Time::Piece', inflate => 'from_mysql_datetime', deflate => 'mysql_datetime', );
- Cees
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Date conversion with Class::DBI
by bsb (Priest) on Jul 07, 2003 at 05:36 UTC | |
by hossman (Prior) on Jul 07, 2003 at 06:24 UTC | |
by bsb (Priest) on Jul 07, 2003 at 07:12 UTC | |
by cees (Curate) on Jul 07, 2003 at 13:33 UTC | |
by bsb (Priest) on Jul 08, 2003 at 00:14 UTC | |
by cees (Curate) on Jul 08, 2003 at 04:55 UTC | |
by bsb (Priest) on Jul 08, 2003 at 08:59 UTC | |
|
SPOPS tack (was: Date conversion with Class::DBI)
by lachoy (Parson) on Jul 08, 2003 at 11:55 UTC |