Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: DATE with time zones
Mark D Powell wrote:
> 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.
That looks promising. I'll investigate further. Ad hoc, I see two issues:
Kind regards
robert Received on Thu Oct 27 2005 - 07:27:32 CDT
![]() |
![]() |