grs.spice
Class TimeBean

java.lang.Object
  |
  +--java.util.Observable
        |
        +--grs.spice.TimeBean
Direct Known Subclasses:
ClockConverterBean

public class TimeBean
extends Observable


Field Summary
static SimpleDateFormat localTime
           
static DecimalFormat longTime
           
static int scId
           
static DecimalFormat threePrec
           
static SimpleTimeZone UTC
           
static SimpleDateFormat utcTime
           
 
Constructor Summary
TimeBean()
          Let's test.
 
Method Summary
static long getCurrentSCLK()
          Return current time in ticks.
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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); } }

Method Detail

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