ChronoZonedDateTimeImpl

A date-time with a time-zone _in the calendar neutral API. !(p) {@code ZoneChronoDateTime} is an immutable representation of a date-time with a time-zone. This class stores all date and time fields, to a precision of nanoseconds, as well as a time-zone and zone offset. !(p) The purpose of storing the time-zone is to distinguish the ambiguous case where the local time-line overlaps, typically as a result of the end of daylight time. Information about the local-time can be obtained using methods on the time-zone.

@implSpec This class is immutable and thread-safe.

@serial Document the delegation of this class _in the serialized-form specification. @param !(D) the concrete type for the date of this date-time @since 1.8

final
class ChronoZonedDateTimeImpl : ChronoZonedDateTime!(D)() if () {}

Members

Functions

_with
ChronoZonedDateTime!(D) _with(TemporalField field, long newValue)
Undocumented in source. Be warned that the author may not have intended to support it.
_with
ChronoZonedDateTime!(D) _with(TemporalAdjuster adjuster)
Undocumented in source. Be warned that the author may not have intended to support it.
compareTo
int compareTo(ChronoZonedDateTime!(ChronoLocalDate) other)
Undocumented in source. Be warned that the author may not have intended to support it.
get
int get(TemporalField field)
Undocumented in source. Be warned that the author may not have intended to support it.
getChronology
Chronology getChronology()
Undocumented in source. Be warned that the author may not have intended to support it.
getLong
long getLong(TemporalField field)
Undocumented in source. Be warned that the author may not have intended to support it.
getOffset
ZoneOffset getOffset()
Undocumented in source. Be warned that the author may not have intended to support it.
getZone
ZoneId getZone()
Undocumented in source. Be warned that the author may not have intended to support it.
isAfter
bool isAfter(ChronoZonedDateTime!(ChronoLocalDate) other)
Undocumented in source. Be warned that the author may not have intended to support it.
isBefore
bool isBefore(ChronoZonedDateTime!(ChronoLocalDate) other)
Undocumented in source. Be warned that the author may not have intended to support it.
isEqual
bool isEqual(ChronoZonedDateTime!(ChronoLocalDate) other)
Undocumented in source. Be warned that the author may not have intended to support it.
isSupported
bool isSupported(TemporalField field)
Undocumented in source. Be warned that the author may not have intended to support it.
isSupported
bool isSupported(TemporalUnit unit)
Undocumented in source. Be warned that the author may not have intended to support it.
minus
ChronoZonedDateTime!(D) minus(TemporalAmount amount)
Undocumented in source. Be warned that the author may not have intended to support it.
minus
ChronoZonedDateTime!(D) minus(long amountToSubtract, TemporalUnit unit)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(ChronoZonedDateTime!(ChronoLocalDate) other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object obj)
Undocumented in source. Be warned that the author may not have intended to support it.
plus
ChronoZonedDateTime!(D) plus(long amountToAdd, TemporalUnit unit)
Undocumented in source. Be warned that the author may not have intended to support it.
plus
ChronoZonedDateTime!(D) plus(TemporalAmount amount)
Undocumented in source. Be warned that the author may not have intended to support it.
range
ValueRange range(TemporalField field)
Undocumented in source. Be warned that the author may not have intended to support it.
super_get
int super_get(TemporalField field)
Undocumented in source. Be warned that the author may not have intended to support it.
super_with
ChronoZonedDateTime!(D) super_with(TemporalAdjuster adjuster)
Undocumented in source. Be warned that the author may not have intended to support it.
toEpochSecond
long toEpochSecond()
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.
toInstant
Instant toInstant()
Undocumented in source. Be warned that the author may not have intended to support it.
toLocalDate
D toLocalDate()
Undocumented in source. Be warned that the author may not have intended to support it.
toLocalDateTime
ChronoLocalDateTime!(D) toLocalDateTime()
Undocumented in source. Be warned that the author may not have intended to support it.
toLocalTime
LocalTime toLocalTime()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
until
long until(Temporal endExclusive, TemporalUnit unit)
Undocumented in source. Be warned that the author may not have intended to support it.
withEarlierOffsetAtOverlap
ChronoZonedDateTime!(D) withEarlierOffsetAtOverlap()
Undocumented in source. Be warned that the author may not have intended to support it.
withLaterOffsetAtOverlap
ChronoZonedDateTime!(D) withLaterOffsetAtOverlap()
Undocumented in source. Be warned that the author may not have intended to support it.
withZoneSameInstant
ChronoZonedDateTime!(D) withZoneSameInstant(ZoneId zone)
Undocumented in source. Be warned that the author may not have intended to support it.
withZoneSameLocal
ChronoZonedDateTime!(D) withZoneSameLocal(ZoneId zone)
Undocumented in source. Be warned that the author may not have intended to support it.
writeExternal
void writeExternal(ObjectOutput _out)

Defend against malicious streams.

Static functions

ensureValid
ChronoZonedDateTimeImpl!(R) ensureValid(Chronology chrono, Temporal temporal)

Casts the {@code Temporal} to {@code ChronoZonedDateTimeImpl} ensuring it bas the specified chronology.

ofBest
ChronoZonedDateTime!(R) ofBest(ChronoLocalDateTimeImpl!(R) localDateTime, ZoneId zone, ZoneOffset preferredOffset)

Obtains an instance from a local date-time using the preferred offset if possible.

ofInstant
ChronoZonedDateTimeImpl!(ChronoLocalDate) ofInstant(Chronology chrono, Instant instant, ZoneId zone)

Obtains an instance from an instant using the specified time-zone.

readExternal
ChronoZonedDateTime!(ChronoLocalDate) readExternal(ObjectInput _in)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta