Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Answer: How do I find today's date?

by sacked (Hermit)
on May 11, 2004 at 13:58 UTC ( #352444=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > How do I find today's date? - Answer contributed by sacked

You can also use POSIX::strftime:
use POSIX qw(strftime); print "today's date is ", strftime( '%b %e, %Y', localtime );

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[LanX]: I thought MST perl was obvious ;-)
[RonW]: I have so much accumulated in my memory that finding the right item at a given moment often fails
[erix]: that's a good one. I must remember that :P

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-08-18 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (310 votes). Check out past polls.

    Notices?