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

Home -> Community -> Usenet -> c.d.o.server -> Re: timezone ?

Re: timezone ?

From: Chadwick Leung <poleetea_at_hotmail.com>
Date: 2000/04/11
Message-ID: <38F20C8F.998A82A5@hotmail.com>#1/1

Perry,

If you just want to do date conversion, you can try this

for example:

SELECT NEW_TIME(sysdate,'EST','GMT') from dual;

to convert Eastern Standard Time to GMT, or

SELECT NEW_TIME(sysdate,'EDT','GMT') from dual;

to convert Eastern Daylight Time to GMT.

similar, to do date conversion duirng insert a record , try this

INSERT INTO <table_name> VALUES (NEW_TIME(sysdate, 'EDT', 'GMT'));

Chadwick

perry ¼g¹D¡G

> If I put a date into oracle, is it stored as I specified it, or is it
> converted
> from my "local" timezone to another (eg, GMT), before it is saved ?
>
> Does Oracle have a concept of local timezone ?
>
> (I noticed that new_time seems to imply there is no predefined local
> timezone, as you specify it for each call to new_time)
>
> Thanks for any info...
>
> - Perry
Received on Tue Apr 11 2000 - 00:00:00 CDT

Original text of this message

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