grs.spice
Class TimeBean
java.lang.Object
|
+--java.util.Observable
|
+--grs.spice.TimeBean
- Direct Known Subclasses:
- ClockConverterBean
- public class TimeBean
- extends Observable
|
Constructor Summary |
TimeBean()
Let's test. |
|
Method Summary |
static long |
getCurrentSCLK()
Return current time in ticks. |
scId
public static int scId
UTC
public static final SimpleTimeZone UTC
localTime
public static final SimpleDateFormat localTime
utcTime
public static final SimpleDateFormat utcTime
threePrec
public static final DecimalFormat threePrec
longTime
public static final DecimalFormat longTime
TimeBean
public TimeBean()
- Let's test.
public static void main(String[] args) {
try {
String now = utcTime.format(new java.util.Date());
System.out.print(now + " => ");
System.out.println(Long.toString(TimeBean.getCurrentSCLK()));
} catch(SpiceException ex) {
ex.printStackTrace(System.err);
}
}
getCurrentSCLK
public static final long getCurrentSCLK()
throws SpiceException
- Return current time in ticks.
- Returns:
- S/C Clock ticks (256 per second).
- Throws:
SpiceException - Internal Error
2001 Mars Odyssey Gamma Ray Spectrometer Team