timestamp convert function

From: Nhan NGO DINH <nngodinh(at)tiscali(dot)it>
To: pgsql-hackers(at)postgresql(dot)org
Subject: timestamp convert function
Date: 2003-11-27 08:49:22
Message-ID: 6.0.0.22.2.20031127093319.01d03e68@192.168.0.254
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

This is really not a problem, may be in other circumstances...
This output has been obtained from a PostgreSQL 7.3.4

===
testdb=# select to_timestamp('23:20:30.123456', 'HH24:MI:SS.US')::time;
to_timestamp
-----------------
23:20:30.123459
(1 row)

testdb=# select to_timestamp('23:20:30', 'HH24:MI:SS.US')::time;
to_timestamp
--------------
23:20:30
(1 row)

testdb=# select to_timestamp('23:20:30', 'HH24:MI:SS.US')::time;
to_timestamp
-----------------
23:20:30.123459
(1 row)
===

Bye!

Nhan NGO DINH

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-11-27 09:12:46 Re: Viewing Parse Tree of a query from front end
Previous Message Jonathan Gardner 2003-11-27 08:18:33 Viewing Parse Tree of a query from front end