Procedure TRANSITIONS
RDB$TIME_ZONE_UTIL.TRANSITIONS
returns the set of rules between the start and end timestamps for a named time zone.
-
RDB$TIME_ZONE_NAME
typeCHAR(63)
-
RDB$FROM_TIMESTAMP
typeTIMESTAMP WITH TIME ZONE
-
RDB$TO_TIMESTAMP
typeTIMESTAMP WITH TIME ZONE
Output parameters:
RDB$START_TIMESTAMP
-
type
TIMESTAMP WITH TIME ZONE
— The start timestamp of the transition RDB$END_TIMESTAMP
-
type
TIMESTAMP WITH TIME ZONE
— The end timestamp of the transition RDB$ZONE_OFFSET
-
type
SMALLINT
— The zone’s offset, in minutes RDB$DST_OFFSET
-
type
SMALLINT
— The zone’s DST offset, in minutes RDB$EFFECTIVE_OFFSET
-
type
SMALLINT
— Effective offset (ZONE_OFFSET
+DST_OFFSET
)
select *
from rdb$time_zone_util.transitions(
'America/Sao_Paulo',
timestamp '2017-01-01',
timestamp '2019-01-01');
Returns (RDB$
prefix left off for brevity):
START_TIMESTAMP END_TIMESTAMP ZONE_OFFSET DST_OFFSET EFFECTIVE_OFFSET ============================ ============================ =========== ========== ================ 2016-10-16 03:00:00.0000 GMT 2017-02-19 01:59:59.9999 GMT -180 60 -120 2017-02-19 02:00:00.0000 GMT 2017-10-15 02:59:59.9999 GMT -180 0 -180 2017-10-15 03:00:00.0000 GMT 2018-02-18 01:59:59.9999 GMT -180 60 -120 2018-02-18 02:00:00.0000 GMT 2018-10-21 02:59:59.9999 GMT -180 0 -180 2018-10-21 03:00:00.0000 GMT 2019-02-17 01:59:59.9999 GMT -180 60 -120