Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A twist on age calculation.
Message
 
 
À
30/12/2004 13:14:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00973330
Message ID:
00973353
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
>Thanks, Rick. I did take a look in there, and caved in and posted here. Made my head hurt ;-)

Made my head hurt to write it, too. < s > Date handling is tricky: the lengths to which one has to go for a solution depends on how accurate one needs to be.

> I did find some other data that allowed a cross check and Sergey's solution works.

In this instance, yes. But if great-grand aunt Emma died 31-Mar-1902, age 33 years, 6 months, and 18 days, that solution gives a DOB of 09/12/1868 whereas I think you will find the correct answer is 09/13/1868.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform