Re: Backing up two days from localtime

2002-04-26 Thread John W. Krahn
Tara Calishain wrote: > > Actually, are there any books/docs that talk specifically about dealing > with time? http://www.rdbooks.com/store/products/rd2735.htm John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: Backing up two days from localtime

2002-04-26 Thread Timothy Johnson
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: [EMAIL PROTECTED] Sent: 4/26/02 5:40 AM Subject: Re: Backing up two days from localtime on Fri, 26 Apr 200

Re: Backing up two days from localtime

2002-04-26 Thread Michael Lamertz
On Fri, Apr 26, 2002 at 08:32:21AM -0400, Tara Calishain wrote: > 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 generat

Re: Backing up two days from localtime

2002-04-26 Thread Felix Geerinckx
on Fri, 26 Apr 2002 12:32:21 GMT, [EMAIL PROTECTED] (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 >

Re: Backing up two days from localtime

2002-04-26 Thread Tara Calishain
At 02:05 AM 4/26/2002, Jeff 'japhy' Pinyan wrote: > >I need to back up two days from localtime and I can't figure out how to do > >it. Currently I'm doing this just so I can work out the rest of the program: > > > >($day, $month, $year) = (localtime) [3,4,5]; #getting your local time > >The generi

Re: Backing up two days from localtime

2002-04-26 Thread Michael Lamertz
On Fri, Apr 26, 2002 at 09:32:04AM +0100, Jonathan E. Paton wrote: > > I need to back up two days from localtime and I can't > > figure out how to do it. Currently I'm doing this just > > so I can work out the rest of the program: > > [Ignore me if you aren't on a Unix like platform] > > Hi, >

Re: Backing up two days from localtime

2002-04-26 Thread Jonathan E. Paton
> I need to back up two days from localtime and I can't > figure out how to do it. Currently I'm doing this just > so I can work out the rest of the program: [Ignore me if you aren't on a Unix like platform] Hi, You should seriously consider installing the 'at' job manager for run-once tasks, o

RE: Backing up two days from localtime

2002-04-25 Thread Timothy Johnson
Actually this is a really common question. The thing you need to remember is that when you use localtime(), what you are really saying is localtime(time). Local time takes the number of seconds since the year 1970 and translates it into the array you are using UNLESS YOU SPECIFY ANOTHER DATE I

Re: Backing up two days from localtime

2002-04-25 Thread Jeff 'japhy' Pinyan
On Apr 26, Tara Calishain said: >I need to back up two days from localtime and I can't figure out how to do >it. Currently I'm doing this just so I can work out the rest of the program: > >($day, $month, $year) = (localtime) [3,4,5]; #getting your local time The generic (read: potentially unsaf