Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Answer: Fast(er) date parsing

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

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

See the great Date::Calc that has plenty of functions to do this:
perl -MDate::Calc -e'my $string="8 nov,2005";my ($year,$month,$day)= D +ate::Calc::Decode_Date_EU($string); print("\n$year/$month/$day\n")' 2005/11/8

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 rifling through the Monastery: (6)
As of 2015-08-31 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (352 votes), past polls