public final class DateTimeValue extends TemporalValue<ZonedDateTime,DateTimeValue>
TemporalValue.TemporalFields| Modifier and Type | Field and Description |
|---|---|
static DateTimeValue |
MAX_VALUE |
static DateTimeValue |
MIN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
DateTimeValue |
add(DurationValue duration) |
static DateTimeValue |
build(MapValue map,
Supplier<ZoneId> defaultZone) |
protected int |
computeHash() |
static DateTimeValue |
datetime(DateValue date,
LocalTimeValue time,
ZoneId zone) |
static DateTimeValue |
datetime(DateValue date,
TimeValue time) |
static DateTimeValue |
datetime(int year,
int month,
int day,
int hour,
int minute,
int second,
int nanoOfSecond,
String zone) |
static DateTimeValue |
datetime(int year,
int month,
int day,
int hour,
int minute,
int second,
int nanoOfSecond,
ZoneId zone) |
static DateTimeValue |
datetime(long epochSecondUTC,
long nano,
ZoneId zone) |
static DateTimeValue |
datetime(long epochSecond,
long nano,
ZoneOffset zoneOffset) |
static DateTimeValue |
datetime(OffsetDateTime datetime) |
static DateTimeValue |
datetime(ZonedDateTime datetime) |
static ZonedDateTime |
datetimeRaw(long epochSecondUTC,
long nano,
ZoneId zone) |
static ZonedDateTime |
datetimeRaw(long epochSecond,
long nano,
ZoneOffset zoneOffset) |
boolean |
equals(boolean[] x) |
boolean |
equals(byte[] x) |
boolean |
equals(char[] x) |
boolean |
equals(double[] x) |
boolean |
equals(DurationValue[] x) |
boolean |
equals(float[] x) |
boolean |
equals(int[] x) |
boolean |
equals(LocalDate[] x) |
boolean |
equals(LocalDateTime[] x) |
boolean |
equals(LocalTime[] x) |
boolean |
equals(long[] x) |
boolean |
equals(OffsetTime[] x) |
boolean |
equals(short[] x) |
boolean |
equals(String[] x) |
boolean |
equals(Value other) |
boolean |
equals(ZonedDateTime[] x) |
String |
getTypeName() |
<T> T |
map(ValueMapper<T> mapper) |
static DateTimeValue |
now(Clock clock) |
static DateTimeValue |
now(Clock clock,
String timezone) |
static DateTimeValue |
now(Clock clock,
Supplier<ZoneId> defaultZone) |
static DateTimeValue |
ofEpoch(IntegralValue epochSecondUTC,
IntegralValue nano) |
static DateTimeValue |
ofEpochMillis(IntegralValue millisUTC) |
static DateTimeValue |
parse(CharSequence text,
Supplier<ZoneId> defaultZone) |
static DateTimeValue |
parse(CharSequence text,
Supplier<ZoneId> defaultZone,
CSVHeaderInformation fieldsFromHeader) |
static DateTimeValue |
parse(TextValue text,
Supplier<ZoneId> defaultZone) |
static ZoneId |
parseZoneOffsetOrZoneName(String zoneName) |
String |
prettyPrint()
Returns a json-like string representation of the current value.
|
static DateTimeValue |
select(AnyValue from,
Supplier<ZoneId> defaultZone) |
DateTimeValue |
sub(DurationValue duration) |
boolean |
supportsTimeZone() |
static DateTimeValue |
truncate(TemporalUnit unit,
TemporalValue input,
MapValue fields,
Supplier<ZoneId> defaultZone) |
ValueGroup |
valueGroup() |
<E extends Exception> |
writeTo(ValueWriter<E> writer) |
asObjectCopy, equals, equals, equals, equals, equals, get, get, getLong, isSupported, isSupported, minus, minus, numberType, parseHeaderInformation, plus, plus, query, range, toString, until, updateHash, with, withasObject, eq, hashCode64, isNaN, parseHeaderInformation, ternaryEquals, writeToequals, hashCode, isSequenceValuepublic static final DateTimeValue MIN_VALUE
public static final DateTimeValue MAX_VALUE
public static DateTimeValue datetime(DateValue date, LocalTimeValue time, ZoneId zone)
public static DateTimeValue datetime(DateValue date, TimeValue time)
public static DateTimeValue datetime(int year, int month, int day, int hour, int minute, int second, int nanoOfSecond, String zone)
public static DateTimeValue datetime(int year, int month, int day, int hour, int minute, int second, int nanoOfSecond, ZoneId zone)
public static DateTimeValue datetime(long epochSecond, long nano, ZoneOffset zoneOffset)
public static ZonedDateTime datetimeRaw(long epochSecond, long nano, ZoneOffset zoneOffset)
public static DateTimeValue datetime(ZonedDateTime datetime)
public static DateTimeValue datetime(OffsetDateTime datetime)
public static DateTimeValue datetime(long epochSecondUTC, long nano, ZoneId zone)
public static ZonedDateTime datetimeRaw(long epochSecondUTC, long nano, ZoneId zone)
public static DateTimeValue ofEpoch(IntegralValue epochSecondUTC, IntegralValue nano)
public static DateTimeValue ofEpochMillis(IntegralValue millisUTC)
public static DateTimeValue parse(CharSequence text, Supplier<ZoneId> defaultZone, CSVHeaderInformation fieldsFromHeader)
public static DateTimeValue parse(CharSequence text, Supplier<ZoneId> defaultZone)
public static DateTimeValue parse(TextValue text, Supplier<ZoneId> defaultZone)
public static DateTimeValue now(Clock clock)
public static DateTimeValue now(Clock clock, String timezone)
public static DateTimeValue now(Clock clock, Supplier<ZoneId> defaultZone)
public static DateTimeValue build(MapValue map, Supplier<ZoneId> defaultZone)
public static DateTimeValue select(AnyValue from, Supplier<ZoneId> defaultZone)
public static DateTimeValue truncate(TemporalUnit unit, TemporalValue input, MapValue fields, Supplier<ZoneId> defaultZone)
public boolean supportsTimeZone()
public <E extends Exception> void writeTo(ValueWriter<E> writer) throws E extends Exception
public String prettyPrint()
ValueprettyPrint in class Valuepublic ValueGroup valueGroup()
valueGroup in class Valueprotected int computeHash()
computeHash in class AnyValuepublic String getTypeName()
getTypeName in class AnyValuepublic <T> T map(ValueMapper<T> mapper)
public DateTimeValue add(DurationValue duration)
add in class TemporalValue<ZonedDateTime,DateTimeValue>public DateTimeValue sub(DurationValue duration)
sub in class TemporalValue<ZonedDateTime,DateTimeValue>public final boolean equals(ZonedDateTime[] x)
public final boolean equals(DurationValue[] x)
public final boolean equals(LocalDateTime[] x)
public final boolean equals(OffsetTime[] x)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.