V - generic type of element valuespublic interface ZonalElement<V> extends ChronoElement<V>
Extends a chronological element by some zonal queries.
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<Moment,V> |
at(ZonalOffset offset)
Creates a function which can query a
Moment at the
given timezone offset. |
ChronoFunction<Moment,V> |
atUTC()
Equivalent to
at(ZonalOffset.UTC). |
ChronoFunction<Moment,V> |
in(Timezone tz)
Creates a function which can query a
Moment in the
given timezone. |
ChronoFunction<Moment,V> |
inStdTimezone()
Creates a function which can query a
Moment in the
system timezone. |
ChronoFunction<Moment,V> |
inTimezone(TZID tzid)
Creates a function which can query a
Moment in the
given timezone. |
compare, getDefaultMaximum, getDefaultMinimum, getSymbol, getType, isDateElement, isLenient, isTimeElement, namecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongChronoFunction<Moment,V> inStdTimezone()
Creates a function which can query a Moment in the
system timezone.
Note: Usually the function converts the given Moment to
a PlainTimestamp and then queries this local timestamp.
MomentChronoFunction<Moment,V> inTimezone(TZID tzid)
Creates a function which can query a Moment in the
given timezone.
Note: Usually the function converts the given Moment to
a PlainTimestamp and then queries this zonal timestamp.
tzid - timezone idMomentIllegalArgumentException - if given timezone cannot be loadedChronoFunction<Moment,V> in(Timezone tz)
Creates a function which can query a Moment in the
given timezone.
Note: Usually the function converts the given Moment to
a PlainTimestamp and then queries this zonal timestamp.
tz - timezoneMomentChronoFunction<Moment,V> atUTC()
Equivalent to at(ZonalOffset.UTC).
Momentat(ZonalOffset)ChronoFunction<Moment,V> at(ZonalOffset offset)
Creates a function which can query a Moment at the
given timezone offset.
Note: Usually the function converts the given Moment to
a PlainTimestamp and then queries this zonal timestamp.
offset - timezone offsetMomentCopyright © 2014–2015. All rights reserved.