Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Displaying time zone
You can
select sessiontimezone, dbtimezone from dual;
I don't know how to manipulate it though. It seems like you should be able to do something like
select sysdate-substr(sessiontimezone,1,3)/24 from dual;
to get the GMT, but I haven't been able to get it to work...
Beth
-----Original Message-----
Sent: Friday, March 29, 2002 12:23 PM
To: Multiple recipients of list ORACLE-L
I think that datatype DATE has no info about time zone in v. 8i. If you
want to show time zone you have to read it from your server env or to
store it separately in other column (and insert looks like
INSERT .... VALUES( ... ,SYSDATE,'CE', ...) for central european time
zone
etc.).
JP
On Fri 29. March 2002 17:39, you wrote:
> How do I display time zone in date format using SQL?
>
> Thanks,
> David
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jan Pruner INET: jan_at_pruner.cz Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Seefelt, Beth INET: Beth.Seefelt_at_TetleyUSA.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Mar 29 2002 - 12:13:21 CST