Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A twist on age calculation.
Message
 
 
À
04/01/2005 10:42:19
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:
00974086
Vues:
31
This is by design and is documented in the readme file: "AgeCalculator treats 'one month' as the interval from a given day in one month to the same day, or as close to it as possible, in the following month." The example given is "31-Jan-2004 to 29-Feb-2004 is 1 month (last day to last day)".


>
>  .CalculateAge({^1988/10/31} ,  {^1998/11/30 })
>  ? .nYears, .nMonths , .nDays
>Observed 10,1,0
>Expected 10,0,30
>
Rick Borup, MCSD

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

Click here to load this message in the networking platform