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.
This example returns the current timezone id on the database server.
SELECT CURRENT_TIMEZONE_ID() AS TimezoneId
TimezoneId |
---|
Central Standard Time |
Syntax of the CURRENT_TIMEZONE_ID function.
CURRENT_TIMEZONE_ID()