Subject: | strptime with single arg |
strptime() is supposed to be the opposite of strftime(). Though not
documented in the POD, strptime() sometimes works without a format
argument when the time is in the default strftime format.
These work:
Time::Piece->strptime('Fri, 10 Aug 2012 05:37:42 GMT');
Time::Piece->strptime('Fri, 10 Aug 2012 05:37:42');
But these throw an "Error parsing time" exception:
Time::Piece->strptime( localtime->strftime );
Time::Piece->strptime('Fri, 10 Aug 2012 05:37:42 AEST');