Datetime -> Timestamp conversion

From: Christof Petig <christof(dot)petig(at)wtal(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Datetime -> Timestamp conversion
Date: 1999-08-25 10:03:07
Message-ID: 37C3BF59.D4B97A02@wtal.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Your name : Christof Petig
Your email address : christof(dot)petig(at)wtal(dot)de

System Configuration
---------------------
Architecture (example: Intel Pentium) : dual Intel Pentium II

Operating System (example: Linux 2.0.26 ELF) : Linux 2.2.11 ELF

PostgreSQL version (example: PostgreSQL-6.5.1): PostgreSQL-6.6
(yesterday's cvs)

Compiler used (example: gcc 2.8.0) : egcs-1.1.1

Please enter a FULL description of your problem:
------------------------------------------------
christof=> select timestamp(datetime 'now');
ERROR: No such function 'datetime_stamp' with the specified attributes

christof=> select timestamp(abstime(datetime 'now'));
timestamp
-----------------------------
Wed Aug 25 11:54:23 1999 MEST
(1 row)

It looks like if the SQL parser needs 'datetime_timestamp' , it looks
for 'datetime_stamp' which doesn't exist!

christof=> select datetime_timestamp(datetime 'now');
datetime_timestamp
----------------------
1999-08-25 11:55:46+02
(1 row)

Also all the different output formats for date/time are more than
confusing.
I read that TIMESTAMP (SQL92) shall replace DATETIME (PostgreSQL) in the
future, has anybody signed this work, yet? Thomas Lockhart?

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 1999-08-25 14:21:27 Re: [BUGS] Error in Makefile
Previous Message Piotr Gadek 1999-08-25 05:37:12 Problem with inet