printsperl -e ' use Time::Piece; $end_date = Time::Piece->strptime("31-02-2006", "%d-%m-%Y"); print $end_date;'
I expected Time::Piece to throw an error because there are only 28 days in Feb 2006, however the date is being parsed. Is there a way in which I can have the TIme::Piece throw an error for the above condition ?Fri Mar 3 00:00:00 2006
In reply to Time::Piece strangeness by InfiniteLoop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |