Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-23 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls