RE: Getting the Current Timezone

  • From: <Joel.Patterson@xxxxxxxxxxx>
  • To: <Brandon.Allen@xxxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 16 Feb 2007 13:46:15 -0500

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@xxxxxxxxxxx
x72546
904  727-2546

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] 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


*       From: "Mark J. Bobak" <mark.bobak@xxxxxxxxxxxxxxx> 
*       To: mr.hicken@xxxxxxxxx 
*       Date: Thu, 15 Feb 2007 15:35:28 -0500 

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.

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


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


Other related posts: