Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: DATE with time zones
You can select the date columns using a function that applies the local
timezone's offset from the database timezone using the Oracle provided
function: new_time.
select to_char(sysdate,'YYYYMMDD HH24:MI:SS') as "Eastern Daylight"
,to_char(new_time(sysdate,'EDT','GMT'),'YYYYMMDD HH24:MI:SS')
GMT
from sys.dual
You will need a method to get the user's time zone: table, sys_context, or other source, but it can be done.
HTH -- Mark D Powell -- Received on Wed Oct 26 2005 - 10:11:52 CDT