public final class LocalMktDateDecoder
extends java.lang.Object
LocalDate. Local here means defined in
terms of the timezone of the market.
The encoded message format is equivalent to encoding a Java format string of "yyyyMMdd". The decoder and encoder convert into "epoch days" - the epoch here where days are 0 is 1970-01-01.
Valid values: YYYY = 0000-9999, MM = 01-12, DD = 01-31.
See LocalMktDateEncoder for how to encode this data type, see UtcTimestampDecoder for UTC
timestamps.
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH |
static int |
MAX_EPOCH_DAYS |
static int |
MIN_EPOCH_DAYS |
| Constructor and Description |
|---|
LocalMktDateDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decode(AsciiBuffer timestamp,
int offset,
int length)
Decode a FIX local mkt date value from a buffer into an epoch days int value.
|
int |
decode(byte[] bytes)
Decode a FIX local mkt date value from a
byte[] into an epoch days int value. |
public static final int MIN_EPOCH_DAYS
public static final int MAX_EPOCH_DAYS
public static final int LENGTH
public int decode(byte[] bytes)
byte[] into an epoch days int value.bytes - a byte array of length 8 or more containing the data to decode.public static int decode(AsciiBuffer timestamp, int offset, int length)
timestamp - the buffer containing the FIX local mkt date valueoffset - the position in the buffer where the value startslength - the length of the value in bytesCopyright © 2015-2022 Real Logic Limited. All Rights Reserved.