public class TTR_MeasureTimeDate extends TTR_AbstractTimeDate
This TTR represents time and date of this packet's payload creation. In other words, moment when payload was measured, not sent.
It is supposed to be used in processing and storage algorithms. For example, It should be used as time reference when drawing diagrams or calculating derivative.
Note that binary 64 bit representation is in msec, like unix time_t * 1000. Actual accuracy is, of course, depends on time source available for sender.
NB! This is LOCAL time, not UTC/GMT.
rawLength, tag| Constructor and Description |
|---|
TTR_MeasureTimeDate(byte tag,
byte[] rec,
int rawLength) |
TTR_MeasureTimeDate(Instant dt) |
TTR_MeasureTimeDate(LocalDateTime ldt) |
getInstant, getLocalDateTimegetValue, toBytesfromBytes, fromBytesAll, getRawLength, getTag, htonl, toBytespublic TTR_MeasureTimeDate(byte tag,
byte[] rec,
int rawLength)
public TTR_MeasureTimeDate(Instant dt)
public TTR_MeasureTimeDate(LocalDateTime ldt)
Copyright © 2019. All rights reserved.