It's not a secret anymore!*
The moose likes Programming Diversions and the fly likes International calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "International calendar " Watch "International calendar " New topic
Author

International calendar

Sonny Pondrom
Ranch Hand

Joined: Jun 05, 2001
Posts: 128
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.
 
Consider Paul's rocket mass heater.
 
subject: International calendar
 
Similar Threads
illegal start of expression
Weeks in a year
Number of days between the 2 given dates.
Festivals and economy
Constructor problem.