From: Richard Huxton <dev@archonet.com>
To: postgresql <pgsql@symcom.com>
To: PgSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: problem with dates
Date: Thu, 22 Feb 2001 14:29:35 -0000
Message-ID: <008c01c09cdb$e4594380$1001a8c0@archonet.com> (raw)
References: <200102221219.f1MCJbx36310@mail.postgresql.org>
From: "postgresql" <pgsql@symcom.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, pgsql@symcom.com
Subject: Re: problem with dates
In-Reply-To: <008c01c09cdb$e4594380$1001a8c0@archonet.com>
References: <200102221219.f1MCJbx36310@mail.postgresql.org> <008c01c09cdb$e4594380$1001a8c0@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox