Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding puzzle 2
Message
De
04/06/2002 13:39:33
 
 
À
04/06/2002 13:28:23
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00664570
Message ID:
00664615
Vues:
19
Mike,

This method fails for young people on their birthday. There may be other scenarios that will give incorrect results also...

And yes, the spec itself was a little vague :)

>LPARAMETERS tdB,tdD
>RETURN INT((tdD-tdB)/365.25)
>
>This doesn't check if the birthdate is lower than the date specified in tdD. If doesn't check if the parameters are date or datetime. You need to make SPEC ifications not SPECK ification <g>.
>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform