And than:my $class=__PACKAGE__; $class->has_a ( date=>'DateTime::Format::MySQl', inflate=>sub {DateTime::Format::MySQL->parse_datetime(shift)} );
$obj->date->year; # or whatever, see perldoc DateTime
In reply to Re: Date conversion with Class::DBI
by Anonymous Monk
in thread Date conversion with Class::DBI
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |