Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: Fast(er) date parsing

( #506228=categorized answer: print w/ replies, xml ) Need Help??

Q&A > dates and times > Fast(er) date parsing contributed by spoon!

I think the POSIX::strptime module is what you're looking for. It has an strptime() function that acts as the inverse of strftime():
use POSIX::strptime; use Time::Local; my $result = timelocal strptime $d, '%a %b %e %H:%M:%S %Y';

Comment on Answer: Fast(er) date parsing
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-08-29 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls