Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what date was last monday?

Status
Not open for further replies.

billbose

Programmer
Jan 15, 2001
66
US
anybody help me on this?
 
so todays time is

my $the_time = time;

is it possible to subtract a day or two from this?
 
my $now=time;
my $yesterday = $now-86400;
my $day_before = $now-(86400*2);

I think Date::Calc is standard now though, so you should probably go with that

--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Lately I have the habbit of first checking if there is already a module doing what I want to do and if all fails write code myself.
 
spell::checker
not enough on lsnguage
--P

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top