Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any function for check if its a leap year ?
Message
 
 
À
21/02/2003 15:26:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00756383
Message ID:
00756463
Vues:
15
>hello all
>
>is there any function for check if current year its a leap year ?
>
>txs

Here's one-liner that uses VFP date arithmetic.
FUNCTION IsLeapYear(tnYear)
RETURN ( (DATE(tnYear,03,01) - DATE(tnYear, 02, 01)) = 29 )
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform