Skip to content

Leap year code for 2000 shouldn't work #1

Description

@RileyPierce

As indicated in this thread (http://forums.adafruit.com/viewtopic.php?f=25&t=35102) the year 2000 is a leap year. This code incorrectly states otherwise. While there's definitely a bug for not adjusting for leap year during 2000, more seriously, the code apparently doesn't add a day for the year 2000 in subsequent years.

But, strangely enough, the code is giving correct results, as compared with NASA's Mars24 Sunclock and James Tauber's Github page.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions