Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Answer: Fast(er) date parsing

by chanio (Priest)
on Nov 08, 2005 at 14:53 UTC ( #506756=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > Fast(er) date parsing - Answer 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

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 rifling through the Monastery: (3)
As of 2017-07-22 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (337 votes). Check out past polls.