Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Date Conversion: yyddd to yyyymmdd

by ambrus (Abbot)
on Jan 05, 2011 at 13:12 UTC ( [id://880594]=note: print w/replies, xml ) Need Help??


in reply to Date Conversion: yyddd to yyyymmdd

The Date::Manip module accepts that format of dates by default (that is, it parses it fine without having to tell it the format), so let's use that.

$ perl -we 'use Date::Manip; print UnixDate($ARGV[0], "%Q\n")' 11004 20110104 $ perl -we 'use Date::Manip::Date 6.0; print Date::Manip::Date->new($A +RGV[0])->printf("%Q\n")' 11004 20110104 $

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://880594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-24 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found