|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Time
spice.basic.JEDTime
public class JEDTime
Class JEDime represents times as Julian ephemeris dates.
Version 1.0.0 22-DEC-2009 (NJB)
Constructor Summary | |
---|---|
JEDTime(double JED)
Construct a JEDTime from a double precision Julian ephemeris date having units of Julian days. |
|
JEDTime(JEDTime t)
Copy constructor: create a new JEDTime value from another. |
|
JEDTime(Time t)
Universal constructor: create a JEDTime from any Time
instance. |
Method Summary | |
---|---|
JEDTime |
add(Duration d)
Add a Duration to a JEDTime. |
boolean |
equals(java.lang.Object obj)
Test two JEDTimes for equality. |
double |
getDays()
Get the scalar count of days stored in this JED instance. |
double |
getTDBSeconds()
Express a JEDTime as a count of TDB seconds past J2000 TDB. |
int |
hashCode()
Return hash code for a JEDTime object. |
JEDTime |
sub(Duration d)
Subtract a Duration from a JEDTime. |
JEDDuration |
sub(Time t)
Subtract a Time instance from this
JEDTime, producing a JEDDuration. |
java.lang.String |
toString()
Convert a JEDTime to a formatted time string using a default picture. |
java.lang.String |
toString(java.lang.String picture)
Convert a JEDTime to a formatted time string using a format picture. |
java.lang.String |
toUTCString(java.lang.String format,
int precision)
Convert a JEDTime to a formatted time string using a format code and an integer precision level for fractional seconds. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JEDTime(double JED)
Note that the input is a primitive type, so no semantic checking is possible. The user must ensure that the input value has the correct reference epoch and time system.
public JEDTime(JEDTime t)
public JEDTime(Time t) throws SpiceException
Time
instance.
This constructor performs all supported time conversions that produce a result expressed as seconds past J2000 TDB.
SpiceException
Method Detail |
---|
public double getDays()
public JEDDuration sub(Time t) throws SpiceException
Time
instance from this
JEDTime, producing a JEDDuration.
sub
in class Time
SpiceException
public JEDTime add(Duration d) throws SpiceException
add
in class Time
SpiceException
public JEDTime sub(Duration d) throws SpiceException
sub
in class Time
SpiceException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString(java.lang.String picture) throws SpiceErrorException
SpiceErrorException
public java.lang.String toUTCString(java.lang.String format, int precision) throws SpiceErrorException
SpiceErrorException
public java.lang.String toString()
toString
in class java.lang.Object
public double getTDBSeconds()
getTDBSeconds
in class Time
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |