Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

International calendar

 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My idea for a programming diversion is to make an international calendar based on the Moon's position in the sky. The Moon revolves around the world 13 times a year and the average period that it takes to change the Moon's face is almost 28 days. 13 * 28 = 364 days. One day is needed to account for the earth's rotation about the Sun. The 28 days could be divided into 4 weeks with 7 days each.

This layout is like a deck of cards. Ace through King being the 13 months and the four suits (spade, heart, diamond, and club) being the 4 weeks or 52 weeks in a year.

There are also 2 jokers in a deck of cards. One would be used every year at the end to make the last day of each year. The other joker would be used as the next to last day of the year every 4 years to account for leap year.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic