convert from datepart('epoch', now()) to Date / time

From: jltsix4(at)yahoo(dot)com (John Turner)
To: pgsql-general(at)postgresql(dot)org
Subject: convert from datepart('epoch', now()) to Date / time
Date: 2003-01-28 22:51:04
Message-ID: 2f901797.0301281451.e5627c@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Quoted from message of:
Date: 2001-01-12 14:15:11 PST

>play=> select date_part('epoch', now());
> date_part
>-----------
> 979337212
>(1 row)

>but I don't know of any easy way to go in the other direction except by
>casting to abstime.

> regards, tom lane
---------------------------

Question:
Has there been a function added in 7.2 or 7.3
To convert from a number like
mytest=# select date_part('epoch', now());
date_part
------------------
1043793246.17284
(1 row)

1043793246.17284 --> to a Date / time ?

This is sort of a double post, I asked in Hackers
in a different way, before I ran across this answer
Sorry if trouble

John

Browse pgsql-general by date

  From Date Subject
Next Message Ron St.Pierre 2003-01-28 22:55:44 is_numeric() or extract_numeric() functions?
Previous Message Uros Gruber 2003-01-28 22:48:33 Re: tsearch comments