Constructors for dates, times, and timestamps

From: "Andrew T(dot) Robinson" <atr(at)nmi(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Constructors for dates, times, and timestamps
Date: 2007-02-27 12:47:32
Message-ID: 45E42864.8080401@nmi.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Migrating from DB/2 6.1 to PostgreSQL 8.1.4,

The following work under DB/2, but I can find no analog in the
PostgreSQL documentation:

time('00:00:00') [there is to_date() and to_timestamp(), but no
to_time()?]

timestamp(u.date, u.time) [where u.date is of type DATE and u.time
is of type TIME]

As with any paradigm shift, I'm sure this will be embarrassingly simple,
but I've spent hours RTFMing to no avail.

Andy

Attachment Content-Type Size
atr.vcf text/x-vcard 313 bytes

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rafa Comino 2007-02-27 13:28:54 Bad performace of a query
Previous Message Robert Partyka 2007-02-27 11:15:03 strange behaviour with sub-select and pl/pgSQL