RE: Date difference.

2006-04-05 Thread Ankur Gupta
hridyesh pant scribbled on Wednesday, April 05, 2006 11:25 PM: > Hi, > i have two date string reading from the log file like below. > $date1="Mon Mar 27 02:45:15 2006"; > $date2="Wed Apr 5 23:20:46 2006"; > > $Number_of_Days = $date1-$date2; > i want to get number of d

RE: Date difference.

2006-04-05 Thread Thomas Bätzler
Hi, > i have two date string reading from the log file like below. > $date1="Mon Mar 27 02:45:15 2006"; > $date2="Wed Apr 5 23:20:46 2006"; > > $Number_of_Days = $date1-$date2; > i want to get number of days between these two dates. > Can someone help me. Have a look at Steffen Beyer's excelle

Re: Date difference.

2006-04-05 Thread Owen Cook
On Thu, 6 Apr 2006, hridyesh pant wrote: > Hi, > i have two date string reading from the log file like below. > $date1="Mon Mar 27 02:45:15 2006"; > $date2="Wed Apr 5 23:20:46 2006"; > > $Number_of_Days = $date1-$date2; > i want to get number of days between these two dates. > Can someone help

Re: Date difference.

2006-04-05 Thread James Turnbull
hridyesh pant wrote: Hi, i have two date string reading from the log file like below. $date1="Mon Mar 27 02:45:15 2006"; $date2="Wed Apr 5 23:20:46 2006"; $Number_of_Days = $date1-$date2; i want to get number of days between these two dates. Can someone help me. Excellent summary of most met

Re: Date difference.

2006-04-05 Thread hridyesh pant
Thanks Thomas i got it. Regards Hridyesh Thomas Bätzler wrote: Hi, i have two date string reading from the log file like below. $date1="Mon Mar 27 02:45:15 2006"; $date2="Wed Apr 5 23:20:46 2006"; $Number_of_Days = $date1-$date2; i want to get number of days between these two dates. Can

RE: Date difference.

2006-04-06 Thread Brian Volk
> Excellent summary of most methods at > http://perlmeme.org/faqs/datetime/comparing_dates.html. > > Regards > > James Turnbull Hi All, I'm running through the example of Date::Calc on the site listed above. When I plug in today's date as my birthday... it returns: I am -31 days old. I wou

Re: Date difference.

2006-04-06 Thread Flemming Greve Skovengaard
Brian Volk wrote: Excellent summary of most methods at http://perlmeme.org/faqs/datetime/comparing_dates.html. Regards James Turnbull Hi All, I'm running through the example of Date::Calc on the site listed above. When I plug in today's date as my birthday... it returns: I am -31 days old.

RE: Date difference.

2006-04-06 Thread Mr. Shawn H. Corey
On Thu, 2006-06-04 at 09:28 -0400, Brian Volk wrote: > > Excellent summary of most methods at > > http://perlmeme.org/faqs/datetime/comparing_dates.html. > > > > Regards > > > > James Turnbull > > Hi All, > > I'm running through the example of Date::Calc on the site listed above. > When I plug

RE: Date difference.

2006-04-06 Thread Timothy Johnson
I saw that someone already recommended Date::Calc, but I'll make another suggestion: Time::Local. It's a much more lightweight module, and it depends on your ultimate needs, but it's a good one to be familiar with. It takes text dates and converts them to Perl time() format. -Original Mess

RE: Date difference.

2006-04-06 Thread Mr. Shawn H. Corey
On Thu, 2006-06-04 at 11:03 -0700, Timothy Johnson wrote: > I saw that someone already recommended Date::Calc, but I'll make another > suggestion: Time::Local. It's a much more lightweight module, and it > depends on your ultimate needs, but it's a good one to be familiar with. > It takes text da