Time::Piece(::MySQL) problem

Russell Matbouli russell-belfast-pm at futureless.org
Wed Jul 2 04:55:29 CDT 2003


Hello,
I have a problem with Time::Piece(::MySQL) - when it gets a date that is
MySQL's default: ie, a DATETIME field with contents like this:
0000-00-00 00:00:00

then it just barfs. According to the documentation, Time::Piece can only
deal with dates since the epoch. However, since this would appear to be
a common enough thing (to have a DATETIME field with the default value),
does anyone know a way around it?

Thanks!
-- 
Russell Matbouli       |
russell at futureless.org |    Monkey, Monkey, Monkey, Monkey, William Shatner!
PGP KeyID: 0x3CA84CF4  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/archives/belfast-pm/attachments/20030702/c87d8866/attachment.bin


More information about the Belfast-pm mailing list