Top Description Classes
module java.base

Package 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 NullPointerException to be thrown. The Javadoc "@param" definition is used to summarise the null-behavior. The "@throws java.lang.NullPointerException" is not explicitly documented in each method.

All calculations should check for numeric overflow and throw either an java.lang.ArithmeticException or a java.time.DateTimeException.

Since
1.8

Class Summary

Modifier and TypeClass and Description
pack-priv class
Ser

The shared serialization delegate for this package.

pack-priv class
TzdbZoneRulesProvider

Loads time-zone rules for 'TZDB'.

public class
ZoneOffsetTransition

A transition between two offsets caused by a discontinuity in the local time-line.

public class
ZoneOffsetTransitionRule

A rule expressing how to create a transition.

public class
ZoneRules

The rules defining how the zone offset varies for a single time-zone.

public class
ZoneRulesException

Thrown to indicate a problem with time-zone configuration.

public abstract class
ZoneRulesProvider

Provider of time-zone rules to the system.