Re: DateTime fields

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dale Anderson" <danderso(at)crystalsugar(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DateTime fields
Date: 2000-06-26 22:41:33
Message-ID: 19498.962059293@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dale Anderson" <danderso(at)crystalsugar(dot)com> writes:
> I noticed that the DateTime fields and the to_timestamp function
> interpret 12 PM as 00:00 and 12 AM as 12:00.

Huh?

regression=# select '2000-06-12 12:00 am' ::datetime;
?column?
------------------------
2000-06-12 00:00:00-04
(1 row)

regression=# select '2000-06-12 12:00 pm' ::datetime;
?column?
------------------------
2000-06-12 12:00:00-04
(1 row)

Looks fine to me.
Could you be more precise about what you're trying to do?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew McMillan 2000-06-26 22:49:04 Re: Conversion from MS Access to Postgresql
Previous Message Michael Fraley 2000-06-26 22:40:55 ERROR: fmgr_info: function 19104: cache lookup failed