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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Date format is unreadable

RE: Date format is unreadable

From: Nguyen, David M <david.m.nguyen_at_xo.com>
Date: Wed, 05 Mar 2003 14:01:39 -0800
Message-ID: <F001.00561740.20030305140139@fatcity.com>


Yes, it is a Unix timestamp. I use your syntax and I got following error.

  1 select
user_name,client_ip,node_name,to_date('01/01/1970','MM/DD/YYYY')+tig   2 where user_name = 'admin'

  3* order by time_stamp

SQL> / select user_name,client_ip,node_name,to_date('01/01/1970','MM/DD/YYYY') + time_stamp from user_activity_log

                                                                       *

ERROR at line 1:

ORA-01841: (full) year must be between -4713 and +9999, and not be 0  

-----Original Message-----
Sent: Wednesday, March 05, 2003 3:25 PM
To: Multiple recipients of list ORACLE-L

David,

 I presume that your date is a Unix timestamp.

Try to see whether

 to_date('01/01/1970', 'MM/DD/YYYY') + TIME_STAMP

yields something more meaningful to you ...

--

Regards,

Stephane Faroult
Oriole Software
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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.net
--

Author: Nguyen, David M
  INET: david.m.nguyen_at_xo.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Mar 05 2003 - 16:01:39 CST

Original text of this message

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