[REBOL] Re: How to...? Convert Date of Birth to Age
From: g:santilli:tiscalinet:it at: 3-Jul-2002 12:31
Hi Ammon,
On Tuesday, July 02, 2002, 2:25:17 PM, you wrote:
AJ> What? Come again? How does [now/date - 1-Jan-1980] come up with 8218?
That's the number of days.
You could divide that by 365 to get your answer; well, you could
also do something like:
>> to-date reduce [1900 1 now/date - 1-jan-1980]
== 3-Jul-1922
that shows 22 years, 7 months and 3 days, but it would be
approximate anyway.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r