Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Answer: How do I find today's date?

by ducky (Scribe)
on Mar 22, 2000 at 23:54 UTC ( #5911=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > How do I find today's date? - Answer 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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2016-12-07 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (133 votes). Check out past polls.