File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: International calendar
 
Similar Threads
Constructor problem.
Festivals and economy
illegal start of expression
Number of days between the 2 given dates.
Weeks in a year