Re: Calculating age

2014-06-29 Thread Mark Smith
Sorry that was rude of me… I meant to thank everyone but particularly Mike and Hlowe for the algorithms they suggested, but I appreciated all of your comments. Cheers, Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687p4680713.html

Re: Calculating age

2014-06-28 Thread Mark Smith
time-revolution.278305.n4.nabble.com/Calculating-age-tp4680687p4680711.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Calculating age

2014-06-27 Thread Peter M. Brigham
On Jun 26, 2014, at 10:44 PM, Mark Smith wrote: > Hi, does anyone know how to calculate someones age in years from two dates? > > Currently I am doing something kludgy like: > > convert dateone from date to seconds > convert datetwo from date to seconds > put datetwo - dateone into age -- calcul

Re: Calculating age

2014-06-26 Thread Mike Bonner
mate. > > > > Thanks > > > > > > > > -- > > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > >

Re: Calculating age

2014-06-26 Thread Charles E Buchwald
; put the trunc of (age / secs_per_year) into age > > But I suspect it is only approximate. > > Thanks > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.html

Re: Calculating age

2014-06-26 Thread dunbarx
(age / secs_per_year) into age -Original Message- From: Mark Smith To: use-revolution Sent: Thu, Jun 26, 2014 10:45 pm Subject: Calculating age Hi, does anyone know how to calculate someones age in years from two dates? Currently I am doing something kludgy like: convert dateone from d

Re: Calculating age

2014-06-26 Thread Vaughn Clement
ut 60*60*24*365.25 into secs_per_year > put the trunc of (age / secs_per_year) into age > > But I suspect it is only approximate. > > Thanks > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Calculating-a

Calculating age

2014-06-26 Thread Mark Smith
year put 60*60*24*365.25 into secs_per_year put the trunc of (age / secs_per_year) into age But I suspect it is only approximate. Thanks -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.html Sent from the Revolution - User mailing list