Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL format string for converting epoch time?
On 12 Aug 2003 21:02:58 GMT, revjack <revjack_at_revjack.net> wrote:
>Hello All,
>
>Is there a to_date() format string for converting perl's
>'time' value to Oracle's DATE format?
>
>i.e. to_date('1060721626', '????????')
there is no real need for that assuming the epoch starts on 1-1-70 and is a fraction of a day, you would simply to_date('01-jan-1970','dd-mon-yyyy') + <your epoch time converted to days>
Sybrand Bakker, Senior Oracle DBA
To reply remove -verwijderdit from my e-mail address Received on Tue Aug 12 2003 - 17:00:01 CDT