Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: command to display time in DATE format
On 6 Jun 2006 07:11:01 -0700, mehaboob_at_gmail.com wrote:
>Hi,
>
>In oracle DB table,I have a varchar field which stores time in EPOCH
>fomat
>for eg:11652232 secs
>
>Is there a command to display the above time in Date format? (something
>like DD MM YY)
>
>Mehaboob
>
If EPOCH format is the number of seconds since 1 Jan 1970:
to_char(to_date('19700101', 'yyyymmdd') + EPOCH_FIELD/86400,'dd mm yy')
Jaap. Received on Tue Jun 06 2006 - 11:16:47 CDT