Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by SBECK (Chaplain)
on May 05, 2010 at 15:31 UTC ( [id://838518]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://838518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-16 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found