ZoneId

Methods
6
Fields
None

Getting one

ZoneId.systemDefault()
ZoneId.of(…)
ZonedDateTime.now():getZone()

Methods

MethodReturnsDescription
getId()stringThe id.
equals(any)booleanWhether other is a zone of the same id.
hashCode()numberThe id's String#hashCode.
toString()stringThe id.
systemDefault()ZoneIdThe system's zone.
of(string)ZoneIdThe zone named zoneId: a region id, Z, an offset (+02:00) or one prefixed with UTC/GMT/UT. An unknown region is `ZoneRulesExcep…

Returned by

MethodReturnsDescription
ZonedDateTime.getZoneZoneIdThe zone.
ZoneIdClass.ofZoneIdThe zone named zoneId: a region id, Z, an offset (+02:00) or one prefixed with UTC/GMT/UT. An unknown region is `ZoneRulesExcep…
ZoneIdClass.systemDefaultZoneIdThe system's zone.

Method details

equals

equals: (ZoneId, any) -> boolean

Whether other is a zone of the same id.

of

of: (string) -> ZoneId

The zone named zoneId: a region id, Z, an offset (+02:00) or one prefixed with UTC/GMT/UT. An unknown region is ZoneRulesException.