public class TTR_ProtocolTimeDate extends TTR_AbstractTimeDate
This TTR represents time and date of this packet (not its payload) creation. In other words, moment when payload was sent, not measured.
It is added by protocol engine if sending code does not provide measure time.
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_ProtocolTimeDate(byte tag,
byte[] rec,
int rawLength) |
TTR_ProtocolTimeDate(Instant dt) |
TTR_ProtocolTimeDate(LocalDateTime ldt) |
getInstant, getLocalDateTimegetValue, toBytesfromBytes, fromBytesAll, getRawLength, getTag, htonl, toBytespublic TTR_ProtocolTimeDate(byte tag,
byte[] rec,
int rawLength)
public TTR_ProtocolTimeDate(Instant dt)
public TTR_ProtocolTimeDate(LocalDateTime ldt)
Copyright © 2019. All rights reserved.