Search notes:

Oracle: DBTIMEZONE / SESSIONTIMEZONE

dbtimezone and sessiontimezone return the value of the database's or session timezone either in +hh:mm format or as name of a time zone, depending on the most recent modification of the time zone using create database or alter database or alter session set time_zone.
select
  dbtimezone
from
  dual;
--
-- DBTIME
-- ------
-- +02:00
Github repository Oracle-Patterns, path: /SQL/functions/date_related/dbtimezone.sql
select
  sessiontimezone
from
  dual;
--
-- SESSIONTIMEZONE
-- -----------------------
-- +01:00


alter session set time_zone = '-3:00';

select
  sessiontimezone
from
  dual;
--
-- SESSIONTIMEZONE
-- ---------------------
-- -03:00
Github repository Oracle-Patterns, path: /SQL/functions/date_related/sessiontimezone.sql

See also

Time zone related stuff
Other date related SQL functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745466558, '13.58.133.140', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/functions/date/db-sessiontimezone(75): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78