Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 studying the Monastery: (14)
As of 2014-09-30 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (375 votes), past polls