This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes Calendars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Calendars" Watch "Calendars" New topic
Author

Calendars

Christopher Arthur
Ranch Hand

Joined: Mar 09, 2004
Posts: 149
I've been looking at the GregorianCalendar class, and I'm finding that after spending some time getting familiar with the interface, it actually is a decent way of dealing with time. Now I have a special timekeeping application, and I'm wondering about possible extensions to the Calendar Class.

For astronomical purposes, there are apparently calendars that differ slightly from common time. There is Coordinate Time and Terrestrial Time, as well as timekeeping in terms of Julian Days (number of days since some date long ago--i.e., today is julian day 2453811. I don't really understand the science involved in these calendars, but the motivation behind these other calendars is to have some standard notion of time, at least throughout the solar system, that accounts for the relativistic time dialations present in orbital mechanics.

So now I am dreaming of an implementation of Calendar, call it TerrestrialTime, that gives me the smart computation on this timescale if I give it a GregorianCalendar instance.

My application deals with computing and interpreting an ephemeris (a database of planetary motion).
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Is there a formula that translates a measure of Gregorian Time into Terrestrial time?
 
jQuery in Action, 2nd edition
 
subject: Calendars