|
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.TDTTime
public class TDTTime
Class TDTTime implements the representation of time as seconds past J2000 TDT (Terrestrial Dynamical Time).
A TDTTime instance can be converted to any other
Time
subclass by passing the
instance to a constructor of that subclass.
Class TDTTime provides a convenient way to create
a Time
value from a double precision
number representing seconds past J2000 TDT.
Class TDTTime also provides a convenient way to perform arithmetic using TDT time values.
Version 1.0.0 05-DEC-2009 (NJB)
Constructor Summary | |
---|---|
TDTTime(double TDTsecondsPastJ2000)
Construct a TDTTime from a double precision count of seconds past J2000 TDT. |
|
TDTTime(java.lang.String timeString)
Create a TDTTime instance from a calendar, DOY, or Julian date string accepted by STR2ET. |
|
TDTTime(TDTTime t)
Copy constructor: create a new TDTTime value from another. |
|
TDTTime(Time t)
Universal constructor: create a TDTTime from any Time
instance. |
Method Summary | |
---|---|
TDTTime |
add(Duration d)
Add a Duration to a TDTTime. |
boolean |
equals(java.lang.Object obj)
Test two TDTTimes for equality. |
double |
getTDBSeconds()
Express a TDTTime as a count of TDB seconds past J2000 TDB. |
double |
getTDTSeconds()
Retrieve seconds past J2000 TDT. |
int |
hashCode()
Return hash code for a TDBTime object. |
TDTTime |
sub(Duration d)
Subtract a Duration from a TDTTime. |
TDTDuration |
sub(Time t)
Subtract a Time instance from this
TDTTime, producing a TDTDuration. |
java.lang.String |
toString()
Convert a TDTTime to a formatted time string using a default picture. |
java.lang.String |
toString(java.lang.String picture)
Convert a TDTTime to a formatted time string using a format picture accepted by TIMOUT. |
java.lang.String |
toUTCString(java.lang.String format,
int precision)
Convert a TDBTime 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 TDTTime(double TDTsecondsPastJ2000)
public TDTTime(java.lang.String timeString) throws SpiceException
SpiceException
public TDTTime(TDTTime t)
public TDTTime(Time t) throws SpiceException
Time
instance.
This constructor performs all supported time conversions that produce a result expressed as seconds past J2000 TDT.
SpiceException
Method Detail |
---|
public double getTDTSeconds()
public TDTDuration sub(Time t) throws SpiceException
Time
instance from this
TDTTime, producing a TDTDuration.
sub
in class Time
SpiceException
public TDTTime add(Duration d) throws SpiceException
add
in class Time
SpiceException
public TDTTime 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 SpiceException
SpiceException
public java.lang.String toUTCString(java.lang.String format, int precision) throws SpiceException
SpiceException
public java.lang.String toString()
toString
in class java.lang.Object
public double getTDBSeconds() throws SpiceException
getTDBSeconds
in class Time
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |