You can convert the date/time to seconds format using the Time::Local module. It attempts to do a "reverse localtime()". -----Original Message----- From: Felix Geerinckx To: beginners@perl.org Sent: 4/26/02 5:40 AM Subject: Re: Backing up two days from localtime 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 -- To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.orgThread Previous | Thread Next