develooper Front page | perl.beginners | Postings from April 2002

Re: Backing up two days from localtime

Thread Previous | Thread Next
From:
Felix Geerinckx
Date:
April 26, 2002 05:40
Subject:
Re: Backing up two days from localtime
Message ID:
Xns91FC95452C7BDfge123@209.85.157.220
on Fri, 26 Apr 2002 12:32:21 GMT, calumet@Mindspring.com (Tara
Calishain) wrote: 

> Actually, are there any books/docs that talk specifically about
> dealing with time?
> I'm anticipating coming across this same problem with user input
> dates, and I don't expect the seconds trick will work for that
> one. 
> 
> For example, say a user specified $day-$month-$year and ten days,
> and I wanted to generate a date string for every day going back
> ten days. 

You might want to look into the Date::Calc module at

    	<http://search.cpan.org/search?dist=Date-Calc>

It will cover most calculations with dates.

With ActivePerl on Windows, it's easily installed with

    	ppm install Date::Calc

-- 
felix

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About