Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Answer: Fast(er) date parsing

by lhoward (Vicar)
on Jul 19, 2000 at 01:29 UTC ( #23068=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > Fast(er) date parsing - Answer contributed by lhoward

Since you know the format and the format is constant then the fastest parser would probably be a split, followed by a month name to month number lookup table. Then take all your numbers and add throw them into an apropriate equation to get the timestamp format and voila.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2016-12-06 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.