TDataTime offers some useful Data and Time Stamp utilities.
More...
TDataTime offers some useful Data and Time Stamp utilities.
- Author
- duval
◆ getDataTimeStamp() [1/2]
static double de.desy.tine.dataUtils.TDataTime.getDataTimeStamp |
( |
| ) |
|
|
static |
◆ getDataTimeStamp() [2/2]
static double de.desy.tine.dataUtils.TDataTime.getDataTimeStamp |
( |
long |
longtimestamp | ) |
|
|
static |
Converts a long timestamp (milliseconds) to a double timestamp (seconds).
- Parameters
-
timeStamp | is the timestamp in milliseconds to be converted. |
- Returns
- the current TINE data timestamp as a UTC double containing seconds since 1.1.1970 with a fractional part.
◆ getDataTimeStampOffset()
static long de.desy.tine.dataUtils.TDataTime.getDataTimeStampOffset |
( |
| ) |
|
|
static |
◆ getLongDataTimeStamp() [1/2]
static long de.desy.tine.dataUtils.TDataTime.getLongDataTimeStamp |
( |
| ) |
|
|
static |
◆ getLongDataTimeStamp() [2/2]
static long de.desy.tine.dataUtils.TDataTime.getLongDataTimeStamp |
( |
double |
timeStamp | ) |
|
|
static |
Converts a double timestamp (seconds) to a long timestamp (milliseconds).
- Parameters
-
timeStamp | is the timestamp in seconds (with fraction part) to be converted. |
- Returns
- the current TINE data timestamp as a UTC long containing milliseconds since 1.1.1970.
◆ setDataTimeStampOffset()
static void de.desy.tine.dataUtils.TDataTime.setDataTimeStampOffset |
( |
long |
offset | ) |
|
|
static |
Sets the TINE time synchronization offset.
- Parameters
-
offset | is the offset to be applied to the TINE timestamp |
◆ systemStartGlobalSynchronization()
static int de.desy.tine.dataUtils.TDataTime.systemStartGlobalSynchronization |
( |
| ) |
|
|
static |
Starts the TINE time synchronization where a TINE Time Server is assumed to be running and delivering a reference time stamp per multicast.
- Note
- this synchronization applies a time offset to timestamps obtained via calls to getDataTimeStamp()
- Returns
- 0 upon success otherwise a TINE error code
References de.desy.tine.client.TLink.attach().
◆ toString() [1/2]
static String de.desy.tine.dataUtils.TDataTime.toString |
( |
double |
dTimeStamp | ) |
|
|
static |
Converts the input timestamp to a string in the form dow mon dd hh:mm:ss.msec zzz yyyy.
- Parameters
-
dTimeStamp | is the timestamp (in seconds with fractional part) to be converted |
- Returns
- string representation of the given timestamp
References de.desy.tine.dataUtils.TDataTime.toString().
◆ toString() [2/2]
static String de.desy.tine.dataUtils.TDataTime.toString |
( |
long |
lTimeStamp | ) |
|
|
static |
The documentation for this class was generated from the following file: