astro
Class JulianDate

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

public class JulianDate
extends Object
implements Inverse

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


Constructor Summary
JulianDate()
           
 
Method Summary
 double evaluate(double ms)
          Converts a time in ms into julian date.
static double fromJd(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 toJd(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

JulianDate

public JulianDate()
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

toJd

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


fromJd

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