SQL CURRENT_TIMEZONE_ID Function

CURRENT_TIMEZONE_ID returns the current timezone id on the database server.

The return value is based on the instance instead of the operating system.

The timezone time is set to UTC time by default.

Example

#

This example returns the current timezone id on the database server.

 SELECT CURRENT_TIMEZONE_ID() AS TimezoneId
Result:  1 record
TimezoneId
Central Standard Time

Syntax

Syntax of the CURRENT_TIMEZONE_ID function.

CURRENT_TIMEZONE_ID()

You may also like



Guides


vsn 3.1