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



Guides


vsn 3.1