Package: java.util

## [Java] Class TimeZone

- java.util.TimeZone

-     public class TimeZone
      extends Object

  GDK enhancements for TimeZone.

  displayName:
    TimeZone
  receiverFqcn:
    java.util.TimeZone

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public ZoneOffset` | `toZoneOffset()` Converts the TimeZone to a corresponding ZoneOffset.
    `` | `public ZoneOffset` | `toZoneOffset(Instant instant)` Converts this TimeZone to a corresponding ZoneOffset.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `addShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, sleep, sleep, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withCloseable, withMethodClosure, withStream, withStream, withTraits`

- - ### Method 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.

      Returns:
        a ZoneOffset
      Since:
        2.5.0