Many thanks to Mike and Hlowe, I suspect the algorithms you suggested are doing very similar things and are an improvement over my approximation. Mike, I don't think you can calculate the seconds of a date prior to 1/1/1970 since the seconds are calculated as 'from that point'. An astute observation I never noticed. Since I was only calculating the ages of actively pregnant women, it was extremely unlikely any would be born prior to 1970. But in any event, your improved algorithm neatly side steps that issue.
Thanks, Mark -- View this message in context: http://runtime-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 and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode