Re: How do I convert an integet to a timestamp? - Mailing list pgsql-sql

From Eugene E.
Subject Re: How do I convert an integet to a timestamp?
Date
Msg-id 43269192.2060603@bankir.ru
Whole thread Raw
In response to How do I convert an integet to a timestamp?  ("Wei" <wengwei@gmail.com>)
List pgsql-sql
Wei wrote:
> Hi.
> 
> I followed the doc and tried "select CAST(1126547334 AS timestamp)" and
> I only got an error response that says: ERROR:  cannot cast type
> integer to timestamp without time zone.
> 
> What is the proper way to do the conversion?

select 123456789::abstime::timestamp;


pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: How do I convert an integet to a timestamp?
Next
From: Marcin Piotr Grondecki
Date:
Subject: Re: SELECT: retrieve only 2 rows next to known row