Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: potential date and time issues / code cleanup

by nefigah (Monk)
on Mar 23, 2008 at 06:22 UTC ( #675741=note: print w/ replies, xml ) Need Help??


in reply to potential date and time issues / code cleanup

There's the Date::Calc CPAN module:

use warnings; use strict; use Date::Calc::Object; my $date = Date::Calc->today - 1;

Which will get you yesterday's date in a pretty clean way.


I'm a peripheral visionary... I can see into the future, but just way off to the side.


Comment on Re: potential date and time issues / code cleanup
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2015-07-05 08:36 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 (61 votes), past polls