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

Home -> Community -> Mailing Lists -> Oracle-L -> AW: function to get GMT time

AW: function to get GMT time

From: Haunschmidt Andreas VASL/FAS <Andreas.Haunschmidt_at_voest.co.at>
Date: Wed, 04 Apr 2001 02:42:22 -0700
Message-ID: <F001.002E0DF3.20010404021521@fatcity.com>

Thanks to all who responded.
Sure, I meant Coordinated Universal Time (UTC).

After all, there seems no simple way to get UTC in PL/SQL, i.e. without a switch-over table for daylight saving time, although at least UNIX-like operating systems use UTC internally and POSIX conformant systems should have the C function gmtime(). In order to avoid OS dependecies / installation problems I'd like to avoid any foreign language ( from the PL/SQL point of view ) modules; well, er ..except if someone had a Java snippet ... ;)

Now I'll probably have to resort to the method I wanted to avoid: Write a PL/SQL function and use a switch-over table, which has to be maintained by hand - sigh...

Thanks again for your replies,
I really did not expect so many responses.

Regards
  Andreas

> ----------
> Von: Haunschmidt Andreas VASL/FAS[SMTP:Andreas.Haunschmidt_at_voest.co.at]
> Gesendet: Dienstag, 3. April 2001 17:45
> An: Multiple recipients of list ORACLE-L
> Betreff: function to get GMT time
>
> Hi !
>
> Is there a way to get GMT time within PL/SQL independent from
> the local time(zone), I'm looking for a function similar to SYSDATE,
> but it should return GMT instead of the local time.
>
>
> TIA
>
> Andreas
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Haunschmidt Andreas VASL/FAS
> INET: Andreas.Haunschmidt_at_voest.co.at
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Haunschmidt Andreas VASL/FAS
  INET: Andreas.Haunschmidt_at_voest.co.at

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Apr 04 2001 - 04:42:22 CDT

Original text of this message

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