Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to create date directly from UNIX time

Re: How to create date directly from UNIX time

From: sybrandb <sybrandb_at_gmail.com>
Date: 10 Jan 2007 01:50:19 -0800
Message-ID: <1168422619.577914.213200@i56g2000hsf.googlegroups.com>

On Jan 10, 9:28 am, krivenok.dmi..._at_gmail.com wrote:
> Hello All!
>
> How can I create object of DATE type directly from UNIX time?
> to_date doesn't provide this facility.
>
> I want to avoid unnecessary strftime call in my perl script.
> Any suggestions?
>
> Thanks!

Just add to_date('01-01-1970', 'dd-mm-yyyy') to your Unix time. That should be all.

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Wed Jan 10 2007 - 03:50:19 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US