Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SYSDATE
Mark D Powell wrote:
> JBB, the sysdate function is dependent on database nls settings. You
> can set the database time zone to be different from the OS time zone
> setting. The current_date function is dependend on client nls settings.
>
> Oracle provides a function to change a date/time value to a different
> time zone: 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
>
> Depending on what you need to do this might be useful to you.
Nice answer Mark :-)
Cheers,
Chris Val
Received on Wed Oct 19 2005 - 20:58:06 CDT