public class FlexDateTime
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
UNKNOWN |
static double |
UNKNOWN_TIMEZONE |
| Constructor and Description |
|---|
FlexDateTime(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
int milliseconds,
java.time.ZoneOffset timezone)
Constructs a FlexDateTime object using the given fields.
|
FlexDateTime(java.time.LocalDateTime dateTimeUTC)
Converts the given LocalDateTime to FlexDateTime.
|
FlexDateTime(long value)
Constructs a FlexDateTime object from an encoded value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDay()
Returns the day part of this datetime (1-12).
|
int |
getHour()
Returns the hour part of this datetime (0-23).
|
java.time.OffsetDateTime |
getLowerBound()
Returns the lower bound of this object, which is the smallest possible
value that would fit all the given bounds.
|
int |
getMillisecond()
Returns the millisecond part of this datetime (0-999).
|
int |
getMinute()
Returns the minute part of this datetime (0-59).
|
int |
getMonth()
Returns the month part of this datetime (1-12).
|
int |
getSecond()
Returns the second part of this datetime (0-59).
|
java.time.ZoneOffset |
getTimezoneOffset()
Returns the zone offset part of this datetime.
|
java.time.OffsetDateTime |
getUpperBound()
Returns the upper bound of this object, which is the largest possible
value that would fit all the given bounds.
|
long |
getValue()
Encodes the contents of this object into a long value.
|
int |
getYear()
Returns the year part of this datetime.
|
public static final int UNKNOWN
public static final double UNKNOWN_TIMEZONE
public FlexDateTime(java.time.LocalDateTime dateTimeUTC)
dateTimeUTC - original datetimepublic FlexDateTime(int year,
int month,
int day,
int hours,
int minutes,
int seconds,
int milliseconds,
java.time.ZoneOffset timezone)
year - year [0, 4000] or -1month - month [1, 12] or -1day - day [1, 31] or -1hours - hours [0, 23] or -1minutes - minutes [0, 59] or -1seconds - seconds [0, 59] or -1milliseconds - milliseconts [0, 999] or -1timezone - timezone, can be nullpublic FlexDateTime(long value)
value - encoded valuepublic long getValue()
public int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMinute()
public int getSecond()
public int getMillisecond()
public java.time.ZoneOffset getTimezoneOffset()
public java.time.OffsetDateTime getLowerBound()
public java.time.OffsetDateTime getUpperBound()