gov.nasa.gsfc.drl.rtstps.core.output.hdf5
Class IETTime

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.output.hdf5.IETTime

public class IETTime
extends java.lang.Object

Helper class for converting packet times to IETTime which is micros from epoch. The conversion is stored at a 64-bit signed Java long. Calculations show that it will remain non-negative and this is enough bit-space to hold value for many years into the future. However... those calculations could be wrong.


Field Summary
private static long microsPerDay
           
private  long time
           
 
Constructor Summary
IETTime(CDSPacketTime packetTime)
          Construct an IETTime from a CDSPacketTime which is the timestamp format of the mission packets.
 
Method Summary
 long getTime()
          Return the calculated time in a long from microseconds since the mission epoch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

microsPerDay

private static final long microsPerDay
See Also:
Constant Field Values

time

private final long time
Constructor Detail

IETTime

public IETTime(CDSPacketTime packetTime)
Construct an IETTime from a CDSPacketTime which is the timestamp format of the mission packets.

Parameters:
packetTime - a CDSPacketTime from a packet
Method Detail

getTime

public long getTime()
Return the calculated time in a long from microseconds since the mission epoch. It should be enough non-negative space to handle mission years quite a bit into the future.

Returns:
a long of the time in microseconds since epoch