Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Date Operations

by joshua (Pilgrim)
on Jul 02, 2002 at 03:33 UTC ( [id://178763]=note: print w/replies, xml ) Need Help??


in reply to Date Operations

If you just need the date and not the time, and you're not running the script at 12 am or 11 pm, you could use something like this...
use strict; use POSIX qw[strftime]; my $date = strftime('%d/%m/%Y', localtime(time + 60 * 60 * 24 * 15));

Joshua

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-25 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found