Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert EST to GMT

user458361Jul 6 2011 — edited Jul 7 2011
Hi


How do I convert the EST time zone to GMT zone, and want to have the day light saving adjusted automatically .
Is new_time will take care of day light saving change?

Tried from_tz, but that is not getting the correct GMT time .


SELECT FROM_TZ(CAST(TO_DATE(sysdate, 'dd/mm/yyyy HH24:MI:SS') AS TIMESTAMP), 'US/Eastern') AT TIME ZONE 'GMT' From_TZGmtTime ,
to_char(new_time(sysdate,'EST','GMT'),'dd-mon-yyyy hh24:mi:ss') New_TimeGmtTime,
To_char(sysdate,'dd-mon-yyyy hh24:mi:ss') EST_LocalTime
FROM DUAL ;

FROM_TZGMTTIME
_______________________________
06-JUL-11 04.56.00.000000000 AM GMT


NEW_TIMEGMTTIME
___________________
06-jul-2011 17:23:55


EST_LOCALTIME
_______________________
06-jul-2011 12:23:55


Both From_Tz and New_Time is not giving me the correct GMt time , the current GMT time when i am running this query is 16:23

Thanks

Ben
This post has been answered by Solomon Yakobson on Jul 6 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2011
Added on Jul 6 2011
6 comments
6,837 views