public class ZoneId
extends Object
GDK enhancements for ZoneId.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
getFullName()Returns the name of this zone formatted according to the TextStyle.FULL text style. |
|
public String |
getFullName(Locale locale)Returns the name of this zone formatted according to the TextStyle.FULL text style for the provided Locale. |
|
public ZoneOffset |
getOffset()Returns a ZoneOffset for this zone as of now. |
|
public ZoneOffset |
getOffset(Instant instant)Returns a ZoneOffset for this zone as of the provided Instant. |
|
public String |
getShortName()Returns the name of this zone formatted according to the TextStyle.SHORT text style. |
|
public String |
getShortName(Locale locale)Returns the name of this zone formatted according to the TextStyle.SHORT text style for the provided Locale. |
|
public ZonedDateTime |
leftShift(LocalDateTime dateTime)Returns a ZonedDateTime of this zone and the given LocalDateTime. |
|
public TimeZone |
toTimeZone()Returns a TimeZone equivalent to this zone. |
| 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 |
Returns the name of this zone formatted according to the TextStyle.FULL text style.
Returns the name of this zone formatted according to the TextStyle.FULL text style for the provided Locale.
locale - a LocaleReturns a ZoneOffset for this zone as of now.
Returns a ZoneOffset for this zone as of the provided Instant.
instant - an InstantReturns the name of this zone formatted according to the TextStyle.SHORT text style.
Returns the name of this zone formatted according to the TextStyle.SHORT text style for the provided Locale.
locale - a LocaleReturns a ZonedDateTime of this zone and the given LocalDateTime.