I am trying to convert EPOCH to a HUMAN DATETIME.
- When I test this on their website, it returns the right value.
- When I do it within SQL Developer, it's wrong.
This lead me to check other basic SQL to see how they get returned,
select sysdate from dual = 12-OCT-2015
It's missing the time?
SELECT TO_CHAR(TO_DATE('2015/05/15 8:30:25', 'YYYY/MM/DD HH:MI:SS'))
FROM dual;
= 15-MAY-15
Again its missing the time?
SELECT TO_DATE('2015/05/15 8:30:25', 'YYYY/MM/DD HH:MI:SS')
FROM dual;
= 15-MAY-15
With out TO_CHAR, still missing time.
Then my EPOCH SQL,
SELECT TO_DATE('01/01/1970 00:00:00','DD/MM/YYYY HH24:MI:SS')+(1325289600000/60/60/24) AS EPOCH FROM dual;
This should return: Sat, 31 Dec 2011 00:00:00 GMT but it returns: 04-OCT-30
Again, TIME is missing.
SERVER is on EST, so time is out by 5 hour Oracle Server 11g Using SQL DEveloper 4.0.2.15
Thanks for any help, Ben