Oracle TZ_OFFSET function
Description
The TZ_OFFSET() is used to get the time zone offset corresponding to the argument based on the date the statement is executed.
Syntax:
TZ_OFFSET({ 'time_zone_name' | '{ + | - } hh : mi' | SESSIONTIMEZONE | DBTMEZONE } )
Parameters:
Name | Description |
---|---|
TZ_OFFSET | A valid time zone. You can enter a valid time zone name, a time zone offset from UTC, or the keyword SESSIONTIMEZONE or DBTIMEZONE. See the valid Time Zone Region Names list from here. |
Applies to:
Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i
Example: Oracle TZ_OFFSET function
The following statement returns the time zone offset of the Africa/Abidjan time zone from UTC:
SQL> SELECT TZ_OFFSET('Africa/Abidjan') FROM DUAL;
Sample Output:
TZ_OFFS ------- +00:00
Previous:
TRUNC(date)
Next:
Oracle-character-functions Introduction
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join