Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:IsLeapYear





Template  

Talk  



Language  

Watch  

View source  





1

  • 2 Parameters
  • 3 Formula
  • 4 Sanity check
  • Usage

    Shortcut
    {{IsLeapYear|year}}
    year defaults to {{CURRENTYEAR}} (2024). It must be specified in the Gregorian calendar, extended to all epochs using linear year numbering: use the proleptic Gregorian calendar in Christian Era before the change, and the astronomical year convention (using negative numbers, and year 0) in all years BC before the Christian era (there's a difference of 1 in absolute value).

    Parameters

    Formula

    The template currently uses Wikimedia function time (#time). It is the same as if 4 mod year = 0 and 100 mod year ≠ 0, then not a leap year, unless 400 mod year = 0, then it is a leap year.

    Sanity check

    Results for fractions like {{IsLeapYear|2000.9}} → 1 are rounded down (floor).


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:IsLeapYear&oldid=918240820"
     



    Last edited on 27 September 2019, at 18:00  


    Languages

     


    Afrikaans
    Anarâškielâ
    العربية
    Arpetan

    Asturianu
    Azərbaycanca

    Башҡортса
    Català
    Dolnoserbski
    Español
    Esperanto
    فارسی
    Français
    Galego


    Հայերեն
    Hornjoserbsce
    Italiano
    Kurdî
    Latviešu
    Ligure
    Македонски

    Malti

    Bahasa Melayu

    Nederlands


    Occitan
    ି


    Polski
    Português
    Română
    Seeltersk
    Shqip
    Simple English
    Slovenčina
    Slovenščina
    Српски / srpski
    Svenska
    Tagalog
    Taqbaylit
    Tarandíne


    Тоҷикӣ
    Türkçe
    Türkmençe
    اردو
    Tiếng Vit

     

    Wikipedia


    This page was last edited on 27 September 2019, at 18:00 (UTC).

    Content is available under CC BY-SA 4.0 unless otherwise noted.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Terms of Use

    Desktop