Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to subtract date by 1 day

by moritz (Cardinal)
on Dec 13, 2007 at 10:06 UTC ( [id://656788]=note: print w/replies, xml ) Need Help??


in reply to How to subtract date by 1 day

Sure there is a module:
use Date::Simple qw(date); my $d = date("2007-12-12"); my $yesterday = $d - 1; print $yesterday;

And of course it can be done without a module, because the module is written in Perl as well.

If you want to see how it's done, look at the module's source.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-18 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found