Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Getting the Current Timezone

RE: Getting the Current Timezone

From: <Joel.Patterson_at_crowley.com>
Date: Fri, 16 Feb 2007 13:46:15 -0500
Message-ID: <02C2FA1C9961934BB6D16DE35707B27B029CF2D0@jax-mbh-01.jax.crowley.com>


I think that depends on how you set your dbtimezone? Mine returns:

SYS AS SYSDBA @ emrep> select to_char(next_run_date,'TZR TZD') from scheduler$_job;

TO_CHAR(NEXT_RUN_DATE,'TZRTZD')



-05:00

SYS AS SYSDBA @ emrep> select sessiontimezone from dual;

SESSIONTIMEZONE



---
-05:00

Joel Patterson
Database Administrator
joel.patterson_at_crowley.com
x72546
904 727-2546

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Allen, Brandon Sent: Friday, February 16, 2007 12:21 PM To: oracle-l-freelists
Subject: Re: Getting the Current Timezone

Also, you might want one of these:  

SQL> select sessiontimezone from dual;

SESSIONTIMEZONE



-08:00
 

SQL> select to_char(next_run_date,'TZR TZD') from scheduler$_job;

TO_CHAR(NEXT_RUN_DATE,'TZRTZD')



PST8PDT PST
PST8PDT PDT
PST8PDT PDT
PST8PDT PDT
PST8PDT PDT
PST8PDT PDT
PST8PDT PDT
PST8PDT PDT 11 rows selected.

Regards,
Brandon Allen


Re: Getting the Current Timezone

select dbtimezone from dual;

On Thu, 2007-02-15 at 12:48 -0700, UtahToad wrote: > In all the research and testing I have done, I cannot find a function that
> will return the timezone for what you need. You can get the time in a > different timezone and some things like that, but I cannot find a way to
> have the system give you the MDT or MST back to you. I find people wanting

> this and the answer was that they would have to write something
> themselves..
> 
> Any ideas?
> 


Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.

--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l Received on Fri Feb 16 2007 - 12:46:15 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US