Subject: | strptime problem |
Date: | Mon, 1 Mar 2010 10:58:46 -0500 |
To: | bug-Time-Piece [...] rt.cpan.org |
From: | val <valkoles [...] gmail.com> |
Hi, I've been using Time::Piece for a long time. And recently I tried
to update the module from 1.16 to 1.19, but I got many my scripts not
working.
I think the problem is with strptime class method.
For example:
bash-3.1$ cat tttt.pl
#!/usr/local/pascrm/perl/bin/perl
use Time::Piece;
print Time::Piece -> strptime('1266516933', '%s');
print "\n";
bash-3.1$ ./tttt.pl
garbage at end of string in strptime: 1266516933 at
/usr/local/perl/5.10.1/lib/5.10.1/i686-linux/Time/Piece.pm line 471.
Thu Jan 1 00:00:00 1970
bash-3.1$
bash-3.1$ perl -v
This is perl, v5.10.1 (*) built for i686-linux
bash-3.1$ uname -a
Linux ***** 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686
i686 i386 GNU/Linux