Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: EPOCH date conversion?
I gaze into my crystal ball...it says you use Remedy! Right?
Well, we do, and it has the same...er...feature.
This...
SELECT ((86400 *
( to_date('&Enter_Date_and_Time','MM/DD/YY:HH24:MI') - to_date('01-JAN-1970'))) + 28800) newtimeFROM dual
Cheers,
Mike
-----Original Message-----
From: Scott Graves [mailto:scott.graves_at_mo.nisc.cc]
Sent: Monday, March 01, 2004 12:48 PM
To: Oracle-L
Subject: EPOCH date conversion?
One of the 3rd party code managements systems we use stores dates as numbers. The Access function ctime() will correctly interpret the date into a valid date format via an ODBC connection. I'm trying to duplicate this function in sqlplus. They tell me that the value of 38030.7181 equates to 2/13/2004 5:14:06PM.
I tried several of the date conversions in metalink that convert EPOCH dates, but was unable to get any to produce the desired results. If anyone has any ideas, I would greatly appreciate it.
Scott Graves
Sr. Systems Programmer
NISC RDQ-STP
Email: scott.graves_at_nisc.cc
Phone: 636-922-9122 x7616
Fax: 636-922-2080
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlReceived on Mon Mar 01 2004 - 14:57:15 CST
-----------------------------------------------------------------
![]() |
![]() |