Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> converting # of secs since 1970 to a date
I have a number stored in the database which represents the number of seconds since Jan 1 1970. i attempt co convert it to a date. Below are the query and results, the date/time is always 4 hours greater than it should be. Any ideas ??
select to_char(to_date('01-JAN-1970','DD-MON-YYYY')+( time_stamp / (60 * 60 * 24)) ,'DD-MON-YY HH24:MI'),provisionedcircuits from system.systemom where time_stamp='961178276';
TO_CHAR(TO_DATE PROVISIONEDCIRCUITS
--------------- -------------------
16-JUN-00 17:57 6
--
Barry Walker
EMAIL: bwalker_at_nortelnetworks.com Received on Fri Jun 16 2000 - 00:00:00 CDT
![]() |
![]() |