Package cern.dip
Class DipTimestamp
- java.lang.Object
-
- cern.dip.DipTimestamp
-
- All Implemented Interfaces:
java.io.Serializable
public class DipTimestamp extends java.lang.Object implements java.io.Serializable
Should be used to indicate the time at which the value of a DipData Item was obtained.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DipTimestamp()
Creates timestamp object with the current time.DipTimestamp(long milliseconds)
Creates DipTimestamp from UTC Java time (in milliseconds).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAsMillis()
Get UTC milliseclong
getAsNanos()
Get UTC nanoSecvoid
setMillis(long milliseconds)
Sets UTC milliseconds.void
setNanos(long nanoseconds)
Sets UTC nanoseconds.
-