Talk:Leap year
Add topic| This is the talk page for discussing improvements to the Leap year article. This is not a forum for general discussion of the subject of the article. |
Article policies
|
| Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
| Archives: 1, 2, 3Auto-archiving period: 12 months |
| This article is written in British English, which has its own spelling conventions (colour, travelled, centre, defence, artefact, analyse) and some terms may be different or absent from other varieties of English. According to the relevant style guide, this should not be changed without broad consensus. |
| A fact from this article was featured on Wikipedia's Main Page in the On this day section on February 29, 2008, February 29, 2012, and February 29, 2016. |
| This It is of interest to the following WikiProjects: | |||||||||||
| |||||||||||
This article has been viewed enough times in a single week to appear in the Top 25 Report. The week in which this happened:
|
This article has been mentioned by a media organization:
|
section Algorithm: adding Excel example
[edit]- Algorithm
The following pseudocode determines whether a year is a leap year or a common year in the Gregorian calendar (and in the proleptic Gregorian calendar before 1582). The year variable being tested is the integer representing the number of the year in the Gregorian calendar, and the tests are arranged to dispatch the most common cases first. Care should be taken in translating mathematical integer divisibility into specific programming languages.
if (year is not exactly divisible by 4) then (it is a common year)
else
if (year is not exactly divisible by 100) then (it is a leap year)
else
if (year is not exactly divisible by 400) then (it is a common year)
else (it is a leap year)
- Excel
This algorithm translates into Excel like this, whereas year stands for the cell which refers to the input cell:
=IF(NOT((year/4=TRUNC(year/4)));"common year";IF(NOT((year/100=TRUNC(year/100)));"leap year";IF(NOT((year/400=TRUNC(year/400)));"common year";"leap year")))
or reversed, more simplified:
=IF((year/400=TRUNC(year/400));"leap year";IF((year/100=TRUNC(year/100));"common year";IF((year/4=TRUNC(year/4));"leap year";"common year"))
-- 23:17, 20 August 2015 31.151.83.20
- Fine, but an Excel formula is not the sort of thing WP would ordinarily supply. The shape of the algorithm in pseudo-code is appropriate, but translations into specific languages generally not. -- Elphion (talk) 17:51, 26 August 2015 (UTC)
Folk traditions: women can ask men to dance
[edit]I recall from my younger years that at dances, women considered leap years times when they could ask men to dance (though men were not excluded from asking women to do so). Here are some Google Books links that support that. (They also refer to women inviting men to dances; but the dances I went to, at colleges, weren't one's where people invited others.) https://www.google.com/books?id=gkhFR-P4HagC&dq=%22leap+year%22+ask+dance&pg=RA4-PA98 https://books.google.com/books?id=pGB6EAAAQBAJ&pg=PT139 (5th paragraph), https://books.google.com/books?id=LElr_lnlEAIC&dq=%22to+the+leap+year%22&pg=RA2-PA681 ~2025-41294-19 (talk) 18:56, 29 December 2025 (UTC)
- Wikipedia articles that use British English
- Selected anniversaries (February 2008)
- Selected anniversaries (February 2012)
- Selected anniversaries (February 2016)
- C-Class level-4 vital articles
- Wikipedia level-4 vital articles in Technology
- C-Class vital articles in Technology
- C-Class Time articles
- Mid-importance Time articles
- Pages in the Wikipedia Top 25 Report