From: Tom Lane <tgl@sss.pgh.pa.us>
To: rodgerd@diaspora.gen.nz
Cc: pgsql-sql@postgresql.org
Subject: Re: to_date has beaten me...
Date: Wed, 05 Feb 2003 23:22:57 -0500
Message-ID: <9133.1044505377@sss.pgh.pa.us> (raw)
In-Reply-To: <20030206040247.GA8032@diaspora.gen.nz>
References: <20030206040247.GA8032@diaspora.gen.nz>
Rodger Donaldson <rodgerd@diaspora.gen.nz> writes:
> values (to_date('06/Feb/2003:11:29:11 +13', 'DD/Mon/YYYY:HH24:MI:SS'),0,302,
> Always inserts the correct date, but sets the time to midnight.
Um, well, yeah ... it's to_DATE, meaning it produces a result of type
date. I think you wanted to_timestamp().
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, rodgerd@diaspora.gen.nz
Subject: Re: to_date has beaten me...
In-Reply-To: <9133.1044505377@sss.pgh.pa.us>
* 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