|
-bottom | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jivesoftware.util.JulianDate
An implementation of a class used represent a Julian date. One very important thing to note about this class is that months ARE NOT zero based (unlike the Java Date class).
Field Summary | |
protected double |
et
|
protected GregorianCalendar |
gregorianDate
|
protected double |
jd
|
protected double |
paramU
|
Constructor Summary | |
JulianDate()
Create a JD based on the current system time. |
|
JulianDate(double jd)
Create a JD based on the given time. |
|
JulianDate(int iYear,
int month,
int day)
Create a JD based on the given time. |
|
JulianDate(int iYear,
int month,
int day,
int hour,
int min,
int sec)
Create a JD based on the given time. |
Method Summary | |
static GregorianCalendar |
computeGregorianDate(double jDate)
Compute a gregorian calendar date based on the given JD |
static JulianDate |
getCurrentJD()
|
double |
getEphemerisTime()
Returns the equivelent ephemeris time equivelent of this date. |
GregorianCalendar |
getGregorianDate()
Returns the equivelent date on the Gregorian calendar. |
double |
getJulianCentury()
Computes the number of Julian Centuries from 1900 Jan 0.5 |
double |
getJulianDate()
Gets the julian date as a double. |
double |
getParamU()
Gets the "U" parameter used in high precision planetary computations. |
String |
toString()
Return this object as a String. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected double jd
protected GregorianCalendar gregorianDate
protected double et
protected double paramU
Constructor Detail |
public JulianDate()
public JulianDate(int iYear, int month, int day)
iYear
- The year to usemonth
- The month to use (NOT ZERO BASED i.e. Jan = 1)day
- The day to usepublic JulianDate(int iYear, int month, int day, int hour, int min, int sec)
iYear
- The year to usemonth
- The month to use (NOT ZERO BASED i.e. Jan = 1)day
- The day to usehour
- The hour to usemin
- The minute to usesec
- The second to usepublic JulianDate(double jd)
jd
- The julian date as a doubleMethod Detail |
public static JulianDate getCurrentJD()
public double getJulianDate()
public double getJulianCentury()
public GregorianCalendar getGregorianDate()
public double getEphemerisTime()
public double getParamU()
public String toString()
public static GregorianCalendar computeGregorianDate(double jDate) throws IllegalArgumentException
|
-bottom | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |