Leap Day

It’s 29 Feb! You only get this once every 4 years. Ever wonder why is there a need for leap year?
I found this article which is quite useful.

Why do we need leap year?
The Gregorian calendar, which now serves as the standard calendar for civil use throughout the world, has both common years and leap years. A common year has 365 days and a leap year 366 days, with the extra, or intercalary, day designated as February 29. A leap year occurs every four years to help synchronize the calendar year with the solar year, or the length of time it takes the earth to complete its orbit about the sun, which is about 365¼ days.
The length of the solar year, however, is slightly less than 365¼ days—by about 11 minutes. To compensate for this discrepancy, the leap year is omitted three times every four hundred years.

In other words, a century year cannot be a leap year unless it is divisible by 400. Thus 1700, 1800, and 1900 were not leap years, but 1600, 2000, and 2400 are leap years.

Ah… I still remember back in poly days when we always have to handle leap year on our programs. Kinda troublesome.

—–

Am looking forward to watch the movie The Leap Year.

A saint once decreed that a man must agree to a woman’s proposal today.

3 Responses to 'Leap Day'

  1. precious says:

    I’m so glad I wasn’t born on leap day.

  2. DK says:

    Precious: Why not? Imagine aging by 1 year old every 4 years. :P

  3. pkchukiss says:

    Actually it shouldn’t be too big a nuisance to handle leap years, since you could just write that once and secretly keep the entire function on your thumbdrive.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CommentLuv badge