Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is best way to calculate age
Message
From
21/09/2006 14:20:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01155605
Message ID:
01156135
Views:
33
Most people born on February 29th celebrate their birthday on February 28th (don't they?)


>>I think you meant Birth + 1 then age -1 is not valid.
>>
>>I guess I have to agree, but it seems like it all comes down to not having a standard for age calculation.
>>
>>If {^1988/01/28}, {^1989/02/28}
>>produces 1, 0, 0
>>And {^1988/01/29}, {^1989/02/28}
>>also produces 1, 0, 0
>>then what should {^1988/01/28}, {^1989/03/01} produce?
>>It gives 1, 0, 1 and that's not exactly right. Shouldn't it be 1, 0, 2?
>>
>>Does it make sense then to only calculate age by number of days and forget about trying to figure years and especially months?
>
>Do we have someone in UT born on Feb. 29 in leap year? How do you solve age problem? How old were you on March 1st next year? And what about kids born on 28 of Feb. on the leap year? Are they one day older than their unlucky friends?
>
>Looks like a time paradox <g> After one year the 1 day difference disappears <g>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform