Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 scrutinizing the Monastery: (22)
As of 2014-07-23 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (140 votes), past polls