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

Re: date

by zeidrik (Scribe)
on May 28, 2001 at 23:19 UTC ( #83778=note: print w/ replies, xml ) Need Help??


in reply to Yesterday's or last month's date?

Definitely Date::Calc is the best choice...
You can find it on CPAN
1. Yesterday: Add_Delta_Days
($year, $month, $day) = Add_Delta_Days(Today(), -1);
2. What do You mean date of last month?
Check Days_in_Month($year, $month) and do a cycle for that :)


Comment on Re: date

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83778]
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: (10)
As of 2015-07-01 21:57 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 (24 votes), past polls