Everything2
Near Matches
Ignore Exact
Full Text
Everything2

leap year

created by LordCrank

(thing) by JeffMagnus (4.9 y) (print)   ?   (I like it!) Sat Nov 13 1999 at 10:14:09

The divisible by 2000 and divisible by 5000 have never been adopted by any country, anywhere. It all relates back to the Gregorian Calendar. So 2000, is a leap year. It looks like Microsoft got this one right. "The 2000 not a leap year," though thoroughly debunked is another of those urban legends to pass around the net for many years.

One should note that a year is a leap year if it is divisible by 4. Unless it is divisible by 100; however, if it is divisible by 400 it is a leap year. There are no further rules.

For more information: <http://aa.usno.navy.mil/AA/faq/docs/leap_years.html>

also http://www.merlyn.demon.co.uk/leapyear.htm

(thing) by e-troon (2.6 wk) (print)   ?   (I like it!) Tue Jun 12 2001 at 11:39:37

An alternative system that is conceptually simpler, very elegant in binary and very accurate is the following:

  • Each year is not a leap year...
  • ...unless it is divisible by 4, in which case it is...
  • ...unless it is divisible by 128, in which case it is not.

This has the advantage of being faster to evaluate on a binary computer, and only involves two tests rather than the current three. The disadvantage is that no-one uses it, so if you do, you'll be wrong, and it's harder to do mental division by 128 in decimal than by 400. Non-optimal C implementation below.

int is_alt_leap (int year) {
   int leap = 0;
   if ((year & 0x03) == 0) {
      leap = 1;
      if ((year & 0x7F) == 0)
         leap = 0;
   }
   return leap;
}

(thing) by ariels (1.1 d) (print)   ?   (I like it!) 1 C! Tue Jun 12 2001 at 12:01:00

The Hebrew calendar is a lunar calendar which uses the Metonic cycle (yes, we stole it from the Ancient Greeks; but at least we kept it). The length of a lunar month is ~29.5 days, so months (essentially; there are some changes but they don't influence the length of the year) alternate 29 and 30 days.

This gives 354 days a year, instead of the ~365.24 you need to keep in sync with the solar calendar. So 7 out of 19 years get an extra month -- Adar becomes Adar 1 followed by Adar 2.

The rule for determining if a year is a leap year is simple: just determine the year (counting from epochial Creation, 5761 years ago) modulo 19. If the remainder is 0, 3, 6, 8, 11, 14 or 17 then it's a leap year.

This gives a solar calendar slightly more accurate than the Gregorian calendar.

Moral:

Given a choice of Greeks or Romans, go with the former.

(definition) by Webster 1913 (print) Wed Dec 22 1999 at 0:49:59

Leap" year` (?)

. Bissextile; a year containing 366 days; every fourth year which leaps over a day more than a common year, giving to February twenty-nine days. See Bissextile.

⇒ Every year whose number is divisible by four without a remainder is a leap year, excepting the full centuries, which, to be leap years, must be divisible by 400 without a remainder. If not so divisible they are common years. 1900, therefore, is not a leap year.

 

© Webster 1913.


printable version
chaos

February 29 Gregorian calendar How to calculate the day of the week for a given date The Everything credibility problem
Birthday Paradox Bissextile February 30 Everything Perpetual Calendar
leap day February 29, 2008 Daylight Saving Time should be ended urban legend
knobstick wedding February 29, 2004 Bahá'í Calendar leap second
Since I've stopped watching TV Kings' Reckoning Playboy New Reckoning
H.P. Lovecraft Daylight Saving Time Dunmow Flitch Trials vernal equinox
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Drink up!
accelerated aging test
Atrocities in the Bible
Root Beer
Forced patriotism
The Terminator
My first writeup
Filibuster
Aurora
Vivien Leigh
Why it seems you get good ideas when you're stoned
Claude Lévi-Strauss
horse meat
satyagraha
New Writeups
Glowing Fish
Tualatin River(place)
The Jacket
Words of Advice(idea)
keepinitreal
Why buy the cow when you can get the milk for free?(idea)
John_Fox
Good Intentions Gone Wrong(person)
Cuckowski
Slavonic Princess(poetry)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
dagnyswaggart
Wild tides guard her secrets(poetry)
Lord Brawl
Caesar's last breath(poetry)
locke baron
Forgotten things in space(fiction)
sitaraika
Colours(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company