Dofactory.com
Dofactory.com
Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

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



Last updated on Dec 21, 2023

Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.