• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

International calendar

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic