Re: problem with dates

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "postgresql" <pgsql(at)symcom(dot)com>, "PgSQL-SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: problem with dates
Date: 2001-02-22 14:29:35
Message-ID: 008c01c09cdb$e4594380$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

From: "postgresql" <pgsql(at)symcom(dot)com>

> This is a rather generic question about "date" and "time". I seem to
> be beating my head on the wall. I was trying to use a set up a table
> with a 'date' and 'time' field. I wanted to keep the two separate.
>
> Can someone explain if there is a difference between a time field
> and a timestamp. I don't mean the visual date and time as a single
> element. I mean in concept. I have been pouring through the docs
> and it appears from my reading that a 'date' field is supposed to act
> like the date portion of a timestamp. But it doesn't and I just don't
> understand why.

What isn't working correctly? I seem to be able to compare dates with
timestamps and combine a date + time into a timestamp.

> if there is some document somewhere that explains this just point
> me to it.

Look at the page "datetime-types.htm" in the docs (might only be in the docs
for 7.1).

- Richard Huxton

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kajetan Kazimierczak 2001-02-22 16:44:56 Re: Re: what means "INSERT xxx yyy" ?
Previous Message Ines.Klimann 2001-02-22 12:52:22 insert values