astro
Class ModifiedJulianDate

java.lang.Object
  extended by astro.ModifiedJulianDate
All Implemented Interfaces:
Function, Inverse

public class ModifiedJulianDate
extends Object
implements Inverse

The julian date converts java time stamps into jd and vice versa via its inverse function.


Constructor Summary
ModifiedJulianDate()
           
 
Method Summary
 double evaluate(double ms)
          Converts a time in ms into julian date.
static double fromMjd(double jd)
          Static version to convert jd to a time stamp, not rounded to closest millisecond.
 double invert(double jd)
          Converts a JD to a time stamp in ms.
static double toMjd(double ms)
          Static version to convert ms in jd.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedJulianDate

public ModifiedJulianDate()
Method Detail

evaluate

public double evaluate(double ms)
Converts a time in ms into julian date.

Specified by:
evaluate in interface Function

invert

public double invert(double jd)
Converts a JD to a time stamp in ms.

Specified by:
invert in interface Inverse

toMjd

public static double toMjd(double ms)
Static version to convert ms in jd.


fromMjd

public static double fromMjd(double jd)
Static version to convert jd to a time stamp, not rounded to closest millisecond.