Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert a stored UNIX-Timestamp

Status
Not open for further replies.

huhu333

Technical User
Feb 12, 2002
2
DE
Hi,
we have stored an UNIX-Timestamp as Number. Is there any way to convert this UNIX-Timestamp in an human readable Date directly on the Oracle SQLPlus Prompt.
 
Here is the script:

SELECT to_char(new_time( to_date('01011970','ddmmyyyy') + 1/24/60/60 * <the number>,
'GMT', 'EDT' ), 'dd-mon-yyyy hh24:mi:ss' )
from dual
 
thanks
this was exactly what i needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top