Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Answer: How do I find today's date?

( #5911=categorized answer: print w/ replies, xml ) Need Help??

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

If you just need a timestamp string, ala "Wed Mar 22 10:56:43 PST 2000" you can just: print scalar localtime() ;
-Ducky

Comment on Answer: How do I find today's date?
Download Code
Re: Answer: How do I find today's date?
by SkipHuffman (Monk) on Sep 19, 2005 at 12:18 UTC

    It sure would be nice to expand this to include how to find some other simple dates:

    • Yesterday
    • tomorrow
    • same time last week
    • same time next week
    • same day next month
    • same day last month
    • same day last year
    • same day next year.

    Skip
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (17)
As of 2015-07-06 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (82 votes), past polls