Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Year 2000 problem
Message
De
29/09/1997 17:21:51
 
 
À
29/09/1997 15:23:14
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00050555
Message ID:
00052290
Vues:
41
>>One tiny problem with this. Try to enter the date 02/29/00, a valid date
>>for year 2000. The problem here is that Feb 29, 1900 is not a valid date
>>(not a leap year).
>>
>
>Well, 2000 should be a leap year, since it's dividable (divisable?) with
>400. Can anyone clear this out?
Years : mod(year,4)=0 is a leap
if its a century change mod(year,400)=0 so 2000 is a leap, 1900 was not.
HTH
Gary
Helping Make Ideas Reality
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform