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 Function

CURRENT_TIMEZONE returns the current timezone name on the database server.

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

By default, the timezone time is set to UTC time.

Example

#

This example returns the current timezone on the database server.

 SELECT CURRENT_TIMEZONE() AS Timezone
Result:  1 record
Timezone
(UTC-06:00) Central Time (US & Canada)

Syntax

Syntax of the CURRENT_TIMEZONE function.

CURRENT_TIMEZONE()

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.