|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.utils.OasisTimestamp
public class OasisTimestamp
An adapter class to convert SIAM timestamps (Java time, long ms since epoch) to OASIS timestamps (decimal day of year). Notes: - This class is immutable - Assumes that all times are UTC
| Constructor Summary | |
|---|---|
OasisTimestamp(long time)
Constructor |
|
| Method Summary | |
|---|---|
java.util.Date |
getDate()
get Date represented by this timestamp |
double |
getOasisTime()
get OASIS timestamp time as double |
long |
getTime()
get time (ms since epoch represented by this timestamp |
static void |
main(java.lang.String[] args)
Convert specified long time to OasisTimestamp and send to stdout |
java.lang.String |
toString()
get OASIS timestamp as String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OasisTimestamp(long time)
| Method Detail |
|---|
public long getTime()
public java.util.Date getDate()
public double getOasisTime()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||