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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Second -> date conversion

Status
Not open for further replies.

Peter01

Programmer
Feb 19, 2001
1
FI
I have this kind of problem:

I have value of time stored as unix timestamp in db2 table.
I need to convert that value to date format in select clause. Is there any built-in functions to do that?
Stored value (seconds) is of datatype integer.

Peter01
pjkojala@mappi.helsinki.fi
 
Hi,

You could try something like this:

select (timestamp('19700101000000') + UNIX_DATE seconds) as DB_TIMESTAMP
from ...
;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top