wood burning stoves
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Calendars" Watch "Calendars" New topic


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?
I agree. Here's the link: http://aspose.com/file-tools
subject: Calendars
It's not a secret anymore!