All Implemented Interfaces:
Serializable, Comparable<ZoneOffset>, TemporalAccessor, TemporalAdjuster

  • Field Summary

    Fields

    Constant for the maximum supported offset.

    Constant for the minimum supported offset.

    The time-zone offset for UTC, with an ID of 'Z'.

    Fields declared in class ZoneId

    SHORT_IDS

    A map of zone overrides to enable the short time-zone names to be used.

  • Method Summary

    Adjusts the specified temporal object to have the same offset as this object.

    int

    Compares this offset to another offset in descending order.

    boolean

    Checks if this offset is equal to another offset.

    Obtains an instance of ZoneOffset from a temporal object.

    int

    Gets the value of the specified field from this offset as an int.

    getId()

    Gets the normalized zone offset ID.

    long

    Gets the value of the specified field from this offset as a long.

    getRules()

    Gets the associated time-zone rules.

    int

    Gets the total zone offset in seconds.

    int

    hashCode()

    A hash code for this offset.

    boolean

    Checks if the specified field is supported.

    Obtains an instance of ZoneOffset using the ID.

    ofHours(int hours)

    Obtains an instance of ZoneOffset using an offset in hours.

    ofHoursMinutes(int hours, int minutes)

    Obtains an instance of ZoneOffset using an offset in hours and minutes.

    ofHoursMinutesSeconds(int hours, int minutes, int seconds)

    Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds.

    ofTotalSeconds(int totalSeconds)

    Obtains an instance of ZoneOffset specifying the total offset in seconds

    <R> R

    Queries this offset using the specified query.

    Gets the range of valid values for the specified field.

    toString()

    Outputs this offset as a String, using the normalized ID.

    Methods declared in class ZoneId

    getAvailableZoneIds, getDisplayName, normalized, of, ofOffset, systemDefault

    Gets the set of available zone IDs.

    Gets the textual representation of the zone, such as 'British Time' or '+02:00'.

    Normalizes the time-zone ID, returning a ZoneOffset where possible.

    Obtains an instance of ZoneId using its ID using a map of aliases to supplement the standard zone IDs.

    Obtains an instance of ZoneId wrapping an offset.

    Gets the system default time-zone.

    Methods declared in class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Creates and returns a copy of this object.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Field Details

    • UTC

    • MIN

    • MAX

  • Method Details

    • of

    • ofHours

    • ofHoursMinutes

    • ofHoursMinutesSeconds

    • from

    • ofTotalSeconds

    • getTotalSeconds

    • getId

    • getRules

    • isSupported

    • range

    • get

    • getLong

    • query

    • adjustInto

    • compareTo

    • equals

    • hashCode

    • toString