Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 wandering the Monastery: (5)
As of 2015-07-03 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls