Re: calc time elapsed in days

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 11:25 AM, Dermot wrote: > 2009/11/27 Rob Coops : > > On Fri, Nov 27, 2009 at 5:43 AM, raphael() > wrote: > >> > >> HOW CAN I COUNT ELAPSED DAYS ? > >> > >> I tried in localtime() days value like > >> > >> my @array_date = localtime(); > >> my $current_dayofyear = @array_d

Re: calc time elapsed in days

2009-11-27 Thread Dermot
2009/11/27 Rob Coops : > On Fri, Nov 27, 2009 at 5:43 AM, raphael() wrote: >> >> HOW CAN I COUNT ELAPSED DAYS ? >> >> I tried in localtime() days value like >> >> my @array_date = localtime(); >> my $current_dayofyear = @array_date[7]; >> >> >> But this would break on New year as "$current_dayofye

Re: calc time elapsed in days

2009-11-27 Thread Rob Coops
On Fri, Nov 27, 2009 at 5:43 AM, raphael() wrote: > Hi, > > I have to code a script to calc time elapsed in days as to calc the rent to > be charged. > The person would write an object number and date in a text file like > > db.txt > OBJECT_NUM, DATE_GIVEN > > 252

calc time elapsed in days

2009-11-26 Thread raphael()
Hi, I have to code a script to calc time elapsed in days as to calc the rent to be charged. The person would write an object number and date in a text file like db.txt OBJECT_NUM, DATE_GIVEN 2525,25.11.2008 2526,01.01.2009 2527,26.11.2009 Now when he enter "OBJECT_NUM" I have to te