astro
Class TruncatedJulianDate

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

public class TruncatedJulianDate
extends Object
implements Inverse

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


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

TruncatedJulianDate

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

toTjd

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


fromTjd

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