Subject: | Date::Manip parse_format bug |
Date: | Wed, 31 Jul 2013 15:51:51 -0500 |
To: | bug-Date-Manip [...] rt.cpan.org |
From: | Mark Keisler <mark [...] mitsein.net> |
I'm trying to parse in a UNIX timestamp (epoch seconds) and parse_format is
failing me:
my $d = new Date::Manip::Date;
$d->parse_format('%s',1375074000);
yields:
Can't locate object method "convert_from_gmt" via package
"Date::Manip::Base" at /usr/share/perl5/vendor_perl/Date/Manip/Date.pm line
522.
I've gotten the same failure in both version 6.24 and the current 6.40.
Perhaps there is also a better way to parse in epoch seconds. If I just
use parse(), that number above gives me a date in 2057 so that's not the
way either :)
--
Mark Keisler
"I have been here. Now I am going there. Where? ... No, I won't have it!"