Re: Syntax for converting double to a timestamp

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: "Frank Church" <voipfc(at)googlemail(dot)com>
Subject: Re: Syntax for converting double to a timestamp
Date: 2006-09-03 23:25:49
Message-ID: 200609040125.50298.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Frank Church wrote:
> error: cannot cast tupe double precision to timestamp without time
> zone
>
> What is the right syntax?

It's not clear what the meaning of a double precision as a timestamp
would be. How about you make that explicit:

"timestamp" * interval '1 second' + timestamp '1900-01-01 00:00:00'

or whatever you had in mind.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-09-03 23:26:22 Re: compressed protocol
Previous Message Michael Glaesemann 2006-09-03 23:24:09 Re: Syntax for converting double to a timestamp