public class ImpinjTimestamp
extends java.lang.Object
Constructor and Description |
---|
ImpinjTimestamp()
Default constructor.
|
ImpinjTimestamp(java.util.Date date)
Constructor that translates standard DateTime data into
ImpinjTimeStamp format.
|
ImpinjTimestamp(long utcTimestamp)
Constructor that takes unsigned long (Impinj reader) timestamp data.
|
ImpinjTimestamp(org.llrp.ltk.generated.interfaces.Timestamp timestampFromLlrp)
Constructor that takes LLRP timestamp data.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getLocalDateTime()
Utility that outputs the ImpinjTimestamp data in local time format.
|
protected long |
getUtcTimestamp() |
java.lang.String |
ToString()
Conversion utility that outputs the ImpinjTimestamp data as a string.
|
public ImpinjTimestamp()
public ImpinjTimestamp(java.util.Date date)
date
- A standard java.util.Date timestamp.public ImpinjTimestamp(long utcTimestamp)
utcTimestamp
- Unsigned long format timestamp; microseconds since
the Epoch (00:00:00 UTC, January 1, 1970) (16 digit number).public ImpinjTimestamp(org.llrp.ltk.generated.interfaces.Timestamp timestampFromLlrp)
timestampFromLlrp
- the LLRP timestamppublic java.util.Date getLocalDateTime()
public java.lang.String ToString()
protected long getUtcTimestamp()