|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.gsfc.drl.rtstps.core.output.hdf5.CDSPacketTime
public class CDSPacketTime
A helper class for working with a segmented time of 16 bits of day, 32 bits of milliseconds and 16 bits micros
Field Summary | |
---|---|
private long |
days
|
static long |
JavaToTIA_InMillis
|
private long |
micros
|
private long |
millis
|
private long |
time
|
Constructor Summary | |
---|---|
CDSPacketTime(long timeStamp)
Give a packet and pull out the raw time stamp field The user is expected to know the packet has a time stamp |
Method Summary | |
---|---|
java.util.Date |
getDate()
Return a Date of the time. |
long |
getDays()
Return the day count |
long |
getMicros()
Return the micros count |
long |
getMillis()
Return the millis count |
long |
getTime()
Return the entire time field which is 64-bits, use it as an unsigned value. |
java.lang.String |
toString()
Return a comma delimited string of "[Days=xxx], [Millis=yyy], [Micros=zzz]" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long JavaToTIA_InMillis
private long days
private long millis
private long micros
private long time
Constructor Detail |
---|
public CDSPacketTime(long timeStamp)
timeStamp
- the 64-bit timestamp from the packetMethod Detail |
---|
public long getDays()
public long getMillis()
public long getMicros()
public long getTime()
public java.util.Date getDate()
Date
of the time. The time is converted to a PDSDate
internally which handles
all the epoch conversion stuff and timezone issues, and then from that is converted to a Date.
Date
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |