# 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`
  `UTC`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getTotalSeconds()`
  `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`

  ### Methods inherited from class Object

  `clone, getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### UTC

    public static final ZoneOffset UTC

- ## 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()