InfiniteLoop has asked for the wisdom of the Perl Monks concerning the following question:
use Time::Piece; my $t = Time::Piece->strptime("31-01-200", "%d-%m-%Y"); $t1 = Time::Piece->strptime("31-01-2005", "%d-%m-%Y"); if($t1 > $t){ print "To be or not to be."; }
Day too big - 47512 > 24855 Sec too small - 47512 < 74752 Sec too big - 47512 > 11647 Cannot handle date (0, 0, 0, 31, 0, 2100) at /usr/lib/i686-linux/Time/ +Piece.pm line 288
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Time::Piece strangeness take two
by BrowserUk (Patriarch) on Dec 13, 2005 at 02:16 UTC | |
by jdporter (Paladin) on Dec 13, 2005 at 03:29 UTC | |
by spiritway (Vicar) on Dec 13, 2005 at 06:12 UTC | |
by jdporter (Paladin) on Dec 13, 2005 at 14:29 UTC | |
by spiritway (Vicar) on Dec 14, 2005 at 05:04 UTC | |
| |
by kulls (Hermit) on Dec 13, 2005 at 03:27 UTC | |
by InfiniteLoop (Hermit) on Dec 13, 2005 at 13:51 UTC |