RE: days calculation

2002-03-11 Thread Paresh Kakrecha
From: Hanson, Robert [mailto:[EMAIL PROTECTED]] >Sent: Monday, March 11, 2002 5:04 PM >To: 'Imtiaz ahmad'; '[EMAIL PROTECTED]' >Subject: RE: days calculation > > > >Even easier is to use Date::Parse. > >use Date::Parse; > >$var1 = '2002

RE: days calculation

2002-03-11 Thread Nikola Janceski
'; '[EMAIL PROTECTED]' Subject: RE: days calculation Even easier is to use Date::Parse. use Date::Parse; $var1 = '2002-02-01'; $var2 = '2002-02-28'; print abs( str2time($var1) - str2time($var2) ) / 86400; Rob -Original Message- From: Imtiaz ahmad [mailto:[E

RE: days calculation

2002-03-11 Thread Hanson, Robert
o: '[EMAIL PROTECTED]' Subject: days calculation Hi- Does anyone know how to calculate number of days if the dates are '2002-02-01' '2002-02-28'? In other words, if var1='2002-02-01' and var2='2002-02-28' then how can we say days=var2-var1? thanks.

RE: days calculation

2002-03-11 Thread Hanson, Robert
_[1]); return abs($d2 - $d1) / 86400; } sub dateToTime { my $d = shift; my @d = split(/-/, $d); return timelocal(0,0,0,$d[2],$d[1]-1,$d[0]-1900); } Rob -Original Message- From: Imtiaz ahmad [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 4:19 PM To: '[EMAIL

RE: days calculation

2002-03-11 Thread Wagner-David
: 27 Wags ;) -Original Message- From: Imtiaz ahmad [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 13:19 To: '[EMAIL PROTECTED]' Subject: days calculation Hi- Does anyone know how to calculate number of days if the dates are '2002-02-01' '2002-02-28

days calculation

2002-03-11 Thread Imtiaz ahmad
Hi- Does anyone know how to calculate number of days if the dates are '2002-02-01' '2002-02-28'? In other words, if var1='2002-02-01' and var2='2002-02-28' then how can we say days=var2-var1? thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE