public static class JSOFA.JulianDate extends Object implements Comparable<JSOFA.JulianDate>
djm0 djm1 2450123.7 0.0 (JD method) 2451545.0 -1421.3 (J2000 method) 2400000.5 50123.2 (MJD method) 2450123.5 0.2 (date &time method)The JD method is the most natural and convenient to use in cases where the loss of several decimal digits of resolution is acceptable. The J2000 method is best matched to the way the argument is handled internally and will deliver the optimum resolution. The MJD method and the date &time methods are both good compromises between resolution and convenience.
Modifier and Type | Field and Description |
---|---|
double |
djm0
MJD zero-point
|
double |
djm1
MJD offset
|
Constructor and Description |
---|
JulianDate(double d1,
double d2) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JSOFA.JulianDate o)
overrides @see java.lang.Comparable#compareTo(java.lang.Object)
|
boolean |
equals(Object obj)
overrides @see java.lang.Object#equals(java.lang.Object)
|
int |
hashCode()
overrides @see java.lang.Object#hashCode()
|
String |
toString()
overrides @see java.lang.Object#toString()
|
public int compareTo(JSOFA.JulianDate o)
compareTo
in interface Comparable<JSOFA.JulianDate>
public int hashCode()
public boolean equals(Object obj)
Copyright © 2010-2021 JBCA, University of Manchester. All Rights Reserved.