Interface ZonalElement<V>
- Type Parameters:
V- generic type of element values
- All Superinterfaces:
ChronoElement<V>,Comparator<ChronoDisplay>
- All Known Subinterfaces:
AdjustableElement<V,T>,CalendarDateElement,NavigableElement<V>,OrdinalWeekdayElement,ProportionalElement<V,T>,WallTimeElement
Extends a chronological element by some zonal queries.
- Since:
- 2.0
- Author:
- Meno Hochschild
-
Method Summary
Modifier and TypeMethodDescriptionat(ZonalOffset offset)Creates a function which can query aMomentat the given timezone offset.atUTC()Equivalent toat(ZonalOffset.UTC).Creates a function which can query aMomentin the given timezone.Creates a function which can query aMomentin the system timezone.inTimezone(TZID tzid)Creates a function which can query aMomentin the given timezone.Methods inherited from interface net.time4j.engine.ChronoElement
compare, getDefaultMaximum, getDefaultMinimum, getDisplayName, getSymbol, getType, isDateElement, isLenient, isTimeElement, nameMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
inStdTimezone
ChronoFunction<Moment,V> inStdTimezone()Creates a function which can query a
Momentin the system timezone.Note: Usually the function converts the given
Momentto aPlainTimestampand then queries this local timestamp.- Returns:
- function with the default system timezone reference,
applicable on instances of
Moment - Since:
- 2.0
-
inTimezone
Creates a function which can query a
Momentin the given timezone.Note: Usually the function converts the given
Momentto aPlainTimestampand then queries this zonal timestamp.- Parameters:
tzid- timezone id- Returns:
- function applicable on instances of
Moment - Throws:
IllegalArgumentException- if given timezone cannot be loaded- Since:
- 2.0
-
in
Creates a function which can query a
Momentin the given timezone.Note: Usually the function converts the given
Momentto aPlainTimestampand then queries this zonal timestamp.- Parameters:
tz- timezone- Returns:
- function applicable on instances of
Moment - Since:
- 2.0
-
atUTC
ChronoFunction<Moment,V> atUTC()Equivalent to
at(ZonalOffset.UTC).- Returns:
- function applicable on instances of
Moment - Since:
- 2.0
- See Also:
at(ZonalOffset)
-
at
Creates a function which can query a
Momentat the given timezone offset.Note: Usually the function converts the given
Momentto aPlainTimestampand then queries this zonal timestamp.- Parameters:
offset- timezone offset- Returns:
- function applicable on instances of
Moment - Since:
- 2.0
-