Package: java.util

## Class TimeZone

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `ZoneOffset` | `toZoneOffset()` Converts the TimeZone to a corresponding ZoneOffset.
    `ZoneOffset` | `toZoneOffset(Instant instant)` Converts this TimeZone to a corresponding ZoneOffset.

  - #### Methods inherited from class java.lang.Object

    `addShutdownHook`, `any`, `any`, `asBoolean`, `asType`, `average`, `collect`, `collect`, `collect`, `contains`, `count`, `dump`, `each`, `eachWithIndex`, `equals`, `every`, `every`, `find`, `find`, `findAll`, `findAll`, `findIndexOf`, `findIndexOf`, `findIndexValues`, `findIndexValues`, `findLastIndexOf`, `findLastIndexOf`, `findResult`, `findResult`, `flatten`, `getAt`, `getMetaClass`, `getMetaPropertyValues`, `getProperties`, `grep`, `grep`, `groupBy`, `groupBy`, `hasProperty`, `identity`, `inject`, `inject`, `inspect`, `invokeMethod`, `is`, `isCase`, `iterator`, `join`, `metaClass`, `print`, `print`, `printf`, `printf`, `println`, `println`, `println`, `putAt`, `respondsTo`, `respondsTo`, `setMetaClass`, `size`, `split`, `sprintf`, `sprintf`, `stream`, `sum`, `sum`, `tap`, `toArrayString`, `toSpreadMap`, `toString`, `use`, `use`, `use`, `with`, `with`, `withTraits`

- - ### Methods Detail

    - #### public ZoneOffset toZoneOffset()

      Converts the TimeZone to a corresponding ZoneOffset. The offset is determined using the current date/time.

      Returns:
        a ZoneOffset
      Since:
        2.5.0

    - #### public ZoneOffset toZoneOffset(Instant instant)

      Converts this TimeZone to a corresponding ZoneOffset. The offset is determined using the date/time of specified Instant.

      Parameters:
      Returns:
        a ZoneOffset
      Since:
        2.5.0