Stampa:IsLeapYear

Nga Wikipedia, enciklopedia e lirë
Jump to navigation Jump to search

0


Usage:
{{IsLeapYear|year}}
year defaults to Stampa:Evaldemo.
Formula:
{{#expr: ((({{{1}}}) mod 4 = 0) and (({{{1}}}) mod 100 != 0)) or (({{{1}}}) mod 400 = 0)}}
Use {{subst:IsLeapYear}} to get this code ready for optional substitution into another template.
Sanity check:
Stampa:Evaldemo/3, 2007 is no leap year.
Stampa:Evaldemo/3, 2008 is a leap year.
Stampa:Evaldemo/3, 2100 is no leap year.
Stampa:Evaldemo/3, 2400 is a leap year.
Stampa:Evaldemo/3, proleptic Gregorian calendar.
Stampa:Evaldemo/3 for 101 BC (mostly pointless).
Stampa:Evaldemo/3, guess why.

Results for fractions like Stampa:Evaldemo/3 are unspecified, even if it apparently gives an "expected" result at the moment this might change without notice.