Package net.time4j

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

public interface ZonalElement<V> extends ChronoElement<V>

Extends a chronological element by some zonal queries.

Since:
2.0
Author:
Meno Hochschild
  • Method Details

    • inStdTimezone

      ChronoFunction<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.

      Returns:
      function with the default system timezone reference, applicable on instances of Moment
      Since:
      2.0
    • inTimezone

      ChronoFunction<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.

      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 Moment in the given timezone.

      Note: Usually the function converts the given Moment to a PlainTimestamp and 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

      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.

      Parameters:
      offset - timezone offset
      Returns:
      function applicable on instances of Moment
      Since:
      2.0