Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

(tye)Re: Add A Number of Days to Today's Date

by tye (Sage)
on Sep 28, 2001 at 21:16 UTC ( [id://115450]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $now= time();
    my($y,$m,$d)= (localtime(
        $now + 60*60*(12-(localtime($now))[2])
    ...
    ))[5,4,3];
    print sprintf "%04d-%02d-%02d", 1900+$y, 1+$m, $d;
    print $/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://115450]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-16 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found