public final class TimeZoneMapping
extends java.lang.Object
| Constructor and Description |
|---|
TimeZoneMapping() |
| Modifier and Type | Method and Description |
|---|---|
static TimeZoneMapping |
getInstance() |
boolean |
isOffsetTimeZone(int timeZoneId)
Determines if
timeZoneId is an offset time zone or - possibly - a named time zone. |
boolean |
isSupportedOffsetTimezone(int timeZoneId)
Determines if
timeZoneId is an offset time zone in the range supported by Jaybird [-18:00, +18:00]. |
java.time.ZoneId |
timeZoneById(int timeZoneId)
Maps a Firebird time zone id to a suitable Java
ZoneId. |
int |
toOffsetMinutes(int timeZoneId)
Return the offset in minutes for an offset time zone id
|
int |
toTimeZoneId(int offsetMinutes)
Return the Firebird time zone id for an offset in minutes.
|
int |
toTimeZoneId(java.time.ZoneId zoneId)
Returns the Firebird time zone id for a
ZoneId. |
int |
toTimeZoneId(java.time.ZoneOffset zoneOffset)
Returns the Firebird time zone id for a
ZoneOffset. |
public static TimeZoneMapping getInstance()
public java.time.ZoneId timeZoneById(int timeZoneId)
ZoneId.
The returned value is either a named time zone (zone region), or an offset zone (ZoneOffset).
timeZoneId - Firebird time zone id (valid between between 0 and 65535)java.time.Zone equivalent (out of range values or unmapped ids will return UTC).public boolean isOffsetTimeZone(int timeZoneId)
timeZoneId is an offset time zone or - possibly - a named time zone.timeZoneId - Firebird time zone idtrue if this is an offset time zone, false otherwisepublic boolean isSupportedOffsetTimezone(int timeZoneId)
timeZoneId is an offset time zone in the range supported by Jaybird [-18:00, +18:00].timeZoneId - Firebird time zone idtrue if this is an offset time zone in the range [-18:00, +18:00]public int toOffsetMinutes(int timeZoneId)
timeZoneId - Offset time zone id (in range [0, 2878])timeZoneId will return 0 for UTC/GMT.public int toTimeZoneId(java.time.ZoneOffset zoneOffset)
ZoneOffset.zoneOffset - The zone offsettoTimeZoneId(ZoneId)public int toTimeZoneId(java.time.ZoneId zoneId)
ZoneId.
This method handles both ZoneOffset and named regions.
zoneId - The zone idpublic int toTimeZoneId(int offsetMinutes)
offsetMinutes - Offset in minutes valid range [-1439, 1439] (or [-23:59, +23:59])0 (UTC)Copyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.