Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# java.time.zone

Support for time-zones and their rules.

Daylight Saving Time and Time-Zones are concepts used by Governments to alter local time. This package provides support for time-zones, their rules and the resulting gaps and overlaps in the local time-line typically caused by Daylight Saving Time.

## Package specification

Unless otherwise noted, passing a null argument to a constructor or method in any class or interface in this package will cause a `https://developer.android.com/reference/java/lang/NullPointerException` to be thrown. The Javadoc "@param" definition is used to summarise the null-behavior. The "@throws `https://developer.android.com/reference/java/lang/NullPointerException`" is not explicitly documented in each method.

All calculations should check for numeric overflow and throw either an `https://developer.android.com/reference/java/lang/ArithmeticException` or a `https://developer.android.com/reference/java/time/DateTimeException`.

## Classes

|---|---|
| [ZoneOffsetTransition](https://developer.android.com/reference/java/time/zone/ZoneOffsetTransition) | A transition between two offsets caused by a discontinuity in the local time-line. |
| [ZoneOffsetTransitionRule](https://developer.android.com/reference/java/time/zone/ZoneOffsetTransitionRule) | A rule expressing how to create a transition. |
| [ZoneRules](https://developer.android.com/reference/java/time/zone/ZoneRules) | The rules defining how the zone offset varies for a single time-zone. |

## Enums

|---|---|
| [ZoneOffsetTransitionRule.TimeDefinition](https://developer.android.com/reference/java/time/zone/ZoneOffsetTransitionRule.TimeDefinition) | A definition of the way a local time can be converted to the actual transition date-time. |

## Exceptions

|---|---|
| [ZoneRulesException](https://developer.android.com/reference/java/time/zone/ZoneRulesException) | Thrown to indicate a problem with time-zone configuration. |

-

  ## Classes

  - [ZoneOffsetTransition](https://developer.android.com/reference/java/time/zone/ZoneOffsetTransition)
  - [ZoneOffsetTransitionRule](https://developer.android.com/reference/java/time/zone/ZoneOffsetTransitionRule)
  - [ZoneRules](https://developer.android.com/reference/java/time/zone/ZoneRules)
-

  ## Enums

  - [ZoneOffsetTransitionRule.TimeDefinition](https://developer.android.com/reference/java/time/zone/ZoneOffsetTransitionRule.TimeDefinition)
-

  ## Exceptions

  - [ZoneRulesException](https://developer.android.com/reference/java/time/zone/ZoneRulesException)