in reply to Re: Can Date::Manip parse a unix timestamp?
in thread Can Date::Manip parse a unix timestamp ?

Just to put in my opinion... I'd like to see Date::Manip able to parse the date "Thu Jan 21 17:13:27 2010 -0400" directly without having to resort to the parse_format function... so I'll add it to my todo list. The parse_format function is good for catching formats I hadn't anticipated, but this one is common enough I should be able to parse it directly.

It's an unusual format in that the time portion and date portion are intermingled. Date::Manip 6 parses the time and date portions separately, so this format is not a trivial date format to add unfortunately.

  • Comment on Re^2: Can Date::Manip parse a unix timestamp?

Replies are listed 'Best First'.
Re^3: Can Date::Manip parse a unix timestamp?
by ambrus (Abbot) on Oct 28, 2015 at 11:09 UTC

    For reference, the date format "%a %b %d %T %Y" (without timezone) came up again in a later question Perl date calculation and formatting. Date::Manip can parse such dates since version 6.31 (2012-03-01).