Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of days in February
Message
 
 
À
16/10/2020 10:11:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01676698
Message ID:
01676702
Vues:
43
>>How do you determine a number of days in a February, given a year?
>
>In addition to Brislav's answer, there's also a formula for it. Every year evenly divisible by 4 (MOD(lnYear, 4) = 0) has a leap year, except every century not evenly divisible by 400 (MOD(lnYear, 400) != 0).
>
>1600 = leap year
>1700 = no leap year
>1800 = no leap year
>1900 = no leap year
>2000 = leap year
>2100 = no leap year
>2200 = no leap year
>2300 = no leap year
>2400 = leap year
>
>We were unique in an almost 800 year time span, in that we saw the century with a leap year.

Thank you.

Reminds me of a joke: A priest goes to a rabbi and say "I know you people celebrate year 5781. How did the year 2020 end?"
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform