public class AMPSTimestamp
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AMPS_TIMESTAMP_LENGTH
The length of a valid AMPS timestamp in bytes.
|
int |
day
Day part of this timestamp.
|
int |
hour
Hour part of this timestamp.
|
int |
minute
Minute part of this timestamp.
|
int |
month
Month part of this timestamp.
|
int |
nano
Nanos part of this timestamp.
|
int |
second
Seconds part of this timestamp.
|
int |
year
Year part of this timestamp.
|
Constructor and Description |
---|
AMPSTimestamp(byte[] data,
int offset,
int length)
Parses an AMPS timestamp into a new object.
|
AMPSTimestamp(java.lang.String data)
Parses an AMPS timestamp into a new object.
|
Modifier and Type | Method and Description |
---|---|
static void |
parse(byte[] data,
int offset,
int length,
AMPSTimestamp out)
Parse an AMPS timestamp from a byte array.
|
static void |
parse(java.lang.String data,
AMPSTimestamp out)
Parse an AMPS timestamp from a string.
|
public static final int AMPS_TIMESTAMP_LENGTH
public int year
public int month
public int day
public int hour
public int minute
public int second
public int nano
public AMPSTimestamp(java.lang.String data)
data
- The AMPS timestamp to parse.public AMPSTimestamp(byte[] data, int offset, int length)
data
- The byte array containing the AMPS timestamp.offset
- The offset in data where the timestamp begins.length
- The length of the timestamp.public static void parse(java.lang.String data, AMPSTimestamp out)
data
- The input AMPS timestamp to parse.out
- The timestamp object to parse into.public static void parse(byte[] data, int offset, int length, AMPSTimestamp out)
data
- The byte array containing the AMPS timestamp.offset
- The offset in data where the timestamp begins.length
- The length of the timestamp.out
- The timestamp object to parse into.