Age calculation script
mark at maseurope.net
Fri Sep 8 08:44:38 CDT 2006
put 60 * 60 * 24 * 365 into secsPerYear
put (60 * 60 * 24 * 365) + (60 * 60 * 6) into secsPerYear
ie. adding a quarter of a days seconds to sescPerYear
seems to fix it, at least for age < 30ish.
On 8 Sep 2006, at 14:36, Mark Smith wrote:
> Actually, the other way it is likely to be wrong is when today's
> date is very close to the persons birthday - eg if a persons age is
> really 16 yrs 11 months, and their birthday is a couple of days
> from now, it may give 17 yrs 0 months.
More information about the use-livecode