Re: DateTime fields

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Dale Anderson <danderso(at)crystalsugar(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DateTime fields
Date: 2000-06-27 13:34:34
Message-ID: Pine.LNX.3.96.1000627152117.20762D-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

*/

On Tue, 27 Jun 2000, Dale Anderson wrote:

> Here is am example of what I am doing.....
>
> danderso=# \d test
> Table "test"
> Attribute | Type | Modifier
> -----------+-----------+----------
> time | timestamp |
>
> danderso=# insert into test values (to_timestamp('1200 PM JUN 27 2000','HHMI PM MON DD YYYY'));
> INSERT 22825 1
> danderso=# select * from test;
> time
> ------------------------
> 2000-06-28 00:00:00-05
> (1 row)
>

And for me:

test=# select to_timestamp('1200 PM JUN 27 2000', 'HHMI PM MON DD YYYY');
to_timestamp
------------------------
2000-06-27 12:00:00+02

but don't worry, you are right, I have NEW FIXED version. I commit it
tomorrow.

(Tom wanted show you that standard date/time routines are right only.)

Karel

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nicolas Shatsky 2000-06-27 13:53:52
Previous Message Gilles DAROLD 2000-06-27 13:27:41 Search engine down ?