Date Function?

MisterX b.xavier at internet.lu
Fri Mar 11 11:42:48 EST 2005


constant dayinsecs   = 86400

function DaysDelta date1, date2
  convert date1 to seconds
  convert date2 to seconds 
  put abs(date1-date2) div dayinsecs into delta
  return delta
end DaysDelta

cheers
Xavier


> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Stewart Lynch
> Sent: Friday, March 11, 2005 17:24
> To: How to use Revolution
> Subject: Date Function?
> 
> Does anyone have a function that will calculate the number of 
> days between two days in different years?
> 
> *******************************************
> ........
> :  o/  : Stewart Lynch
> : <|   : Director of Instruction, Technology and Information Services
> : / >  : Richmond School District
> :......:   Richmond, BC Canada
> Internet: slynch at richmond.sd38.bc.ca
> https://public.sd38.bc.ca/~slynch
> tel. (604) 668-6128 fax: (604) 668-6006
> *******************************************
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list