> It's not exquisite
But it ain't bad... something to look forward to.
Thanks Ian!
Steve
-----Original Message-----
Sent: Friday, March 01, 2002 9:00 AM
To: Multiple recipients of list ORACLE-L
Importance: High
Here's a 9i solution. It's not exquisite amd I expect there is probably be
a better way.
SELECT
(TO_DATE(TO_CHAR(SYS_extract_utc(current_timestamp),
'DD-MON-YYYY:HH24:MI:SS'),
'DD-MON-YYYY:HH24:MI:SS')
- TO_DATE('01-JAN-1970:00:00:00', 'DD-MON-YYYY:HH24:MI:SS')) * 86400
from dual
/
Ian MacGregor
Stanford Linear Acclerator Center
[EMAIL PROTECTED]
-----Original Message-----
Sent: Thursday, February 28, 2002 2:56 PM
To: Multiple recipients of list ORACLE-L
I want to get the UTC (Coordinated Universal Time) from the database without
having to escape to the O/S or write a stored proc. I want to get this time
in GMT epoch seconds without needing to know what timezone the server is in.
Can't find any Oracle supplied package for this and I'm appalled.
My current medulla oblongata init.ora setting is clues = 0.
Suggestions?
Steve Orr
Bozeman, MT
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Orr, Steve
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: MacGregor, Ian A.
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: Orr, Steve
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).