- or download this
use Time::Piece::MySQL;
use Date::Parse;
...
},
deflate => 'mysql_datetime',
);
- or download this
package MyTime;
...
'fallback' => undef;
1;
- or download this
package MyDBI::Table;
...
},
deflate => 'mysql_datetime',
);
- or download this
my $t = MyDBI::Table->retrieve(1);
print $t->date, "\n";
...
print $t->date, "\n";
$t->date('07/08/2003'); # read as MM/DD/YYYY
print $t->date, "\n";