Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to...? Convert Date of Birth to Age

From: otherchaz:mindspring at: 2-Jul-2002 16:55

>> now/date - 1-jul-2002
== 1
>> now/date - 1-jun-2002
== 31 totalDaysElapsed: now/date - 1-Jan-1980 ; days since 1-Jan-1980 == 8218 years: a / 365 == 22.5150684931507 yearRemainder: (b - 22) * 365; == 188 months: c / 30 == 6.26666666666668 monthRemainder: d - 6 == 0.266666666666679 days: (d - 6) * 30 == 8.00000000000037 22 years, 6 months, 8 days, and some change.