Class ZoneOffset

java.lang.Object
java.time.ZoneId
java.time.ZoneOffset

public final class ZoneOffset extends ZoneId
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ZoneOffset
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    static ZoneOffset
    of(String offsetId)
     
    static ZoneOffset
    ofHours(int hours)
     
    static ZoneOffset
    ofHoursMinutes(int hours, int minutes)
     
    static ZoneOffset
    ofTotalSeconds(int totalSeconds)
     

    Methods inherited from class ZoneId

    equals, getId, hashCode, systemDefault, toString
    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
     
    int
    Returns a hash code value for the object.
    static ZoneId
     
    Returns a string representation of the object.

    Methods inherited from class Object

    clone, getClass, notify, notifyAll, wait, wait, wait
    Modifier and Type
    Method
    Description
    protected Object
     
    final Class
    Returns the runtime class of an 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 current thread to wait until another thread invokes the method or the method for this object.
    final void
    wait(long timeout)
    Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.
    final void
    wait(long timeout, int nanos)
    Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
  • Field Details

  • Method Details

    • of

      public static ZoneOffset of(String offsetId)
    • ofHours

      public static ZoneOffset ofHours(int hours)
    • ofHoursMinutes

      public static ZoneOffset ofHoursMinutes(int hours, int minutes)
    • ofTotalSeconds

      public static ZoneOffset ofTotalSeconds(int totalSeconds)
    • getTotalSeconds

      public int getTotalSeconds()