>>Fabio, why do you expect 17 days when 15 is correct
>>1988,2,29 is the last day in february in 1988 + 15 days yields the 14th
>>
>>Cetin is right, you are wrong!
>>
>>
>>Peter
>>
>
>
>>Birth = {^1988/2/29}
>* Age in {^1989/3/01} is: 1 years 0 months 1 day
>
>* Age in {^1989/2/28} is ?
>* if age= 0 years 11 months and 30 days
>* and age 1 year is not possible ( the person it doesn't have birthday)
>
>* then the possible choice is only:
>* in {^1989/2/28} is : 1 years 0 months 0 days
>
>
>result: the only common sense is
>age=((years)+months)+days
>today = ((birth+years)+months)+days
>
>and age's days are the last lived days
Yes, that's correct and that's the definition used in Rick's class. Cetin's code returns 11 months 30 days.
If it's not broken, fix it until it is.
My Blog