RE: compare date,time

2003-08-27 Thread Kevin Pfeiffer
Hi all, In article <[EMAIL PROTECTED]>, Rob Hanson wrote: > There are lots of ways to do this, but I usually use the Date::Parse > module. It converts a date string into seconds (seconds since 1/1/1970). > > use Date::Parse; > > my $hour = 3600; # 1 hour = 3600 seconds > > my $t1 = str2time("1

compare date,time

2003-08-14 Thread awards
Hi, I have the following 12/08/2003, 11:00 13/08/2003, 23:00 Now I would like to compare them and then calculate the how long time was elapsed in terms of hours. For the example above it will return 36 hours. I don't know if there is a module that do that or a function or we just have to progra

Re: compare date,time

2003-08-14 Thread David Storrs
On Mon, Aug 11, 2003 at 10:25:07PM +0200, awards wrote: > Hi, > > thank you, Now i have a new question. > If I do the code myself which I can do. > would the process of executing the program faster if I do the code myself or > if I use a Module i.e Date::Calc?? > > regards > awards There is a s

Re: compare date,time

2003-08-14 Thread David Storrs
On Wed, Aug 13, 2003 at 09:35:20PM -0700, R. Joseph Newton wrote: > David Storrs wrote: > > > On Mon, Aug 11, 2003 at 10:25:07PM +0200, awards wrote: [snip] > > > would the process of executing the program faster if I do the code myself or > > > if I use a Module i.e Date::Calc?? > > [snip answer

RE: compare date,time

2003-08-14 Thread Hanson, Rob
11, 2003 2:24 PM To: [EMAIL PROTECTED] Subject: compare date,time Hi, I have the following 12/08/2003, 11:00 13/08/2003, 23:00 Now I would like to compare them and then calculate the how long time was elapsed in terms of hours. For the example above it will return 36 hours. I don't know

Re: compare date,time

2003-08-14 Thread R. Joseph Newton
David Storrs wrote: > On Mon, Aug 11, 2003 at 10:25:07PM +0200, awards wrote: > > Hi, > > > > thank you, Now i have a new question. > > If I do the code myself which I can do. > > would the process of executing the program faster if I do the code myself or > > if I use a Module i.e Date::Calc?? >

RE: compare date,time

2003-08-14 Thread Dan Muey
> Hi, Howdy > > I have the following > > 12/08/2003, 11:00 > > 13/08/2003, 23:00 > Now I would like to compare them and then calculate the how > long time was elapsed in terms of hours. For the example > above it will return 36 hours. > > I don't know if there is a module that do that or a

RE: compare date,time

2003-08-14 Thread Stephen Gilbert
> -Original Message- > From: awards [mailto:[EMAIL PROTECTED] > Sent: Monday, August 11, 2003 2:24 PM > To: [EMAIL PROTECTED] > Subject: compare date,time > > > Hi, > > I have the following > > 12/08/2003, 11:00 > > 13/08/2003, 23:00 &

Re: compare date,time

2003-08-11 Thread awards
Hi, thank you, Now i have a new question. If I do the code myself which I can do. would the process of executing the program faster if I do the code myself or if I use a Module i.e Date::Calc?? regards awards -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL