Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
The stupid question is the question not asked
 
PerlMonks  

Re: d-mmm-yyyy to DOY (day of year)

by runrig (Abbot)
on May 13, 2013 at 21:49 UTC ( #1033366=note: print w/ replies, xml ) Need Help??


in reply to d-mmm-yyyy to DOY (day of year)

Using Time::Piece:

print Time::Piece->strptime($date_str, "%d-%b-%Y")->yday(),"\n";


Comment on Re: d-mmm-yyyy to DOY (day of year)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2014-04-18 20:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls