pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Thomas Good <tomg@sqlclinic.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ian Barwick <barwick@gmx.net>
Cc: Postgres SQL List <pgsql-sql@postgresql.org>
Subject: Re: Date Anomaly??
Date: Wed, 7 May 2003 08:52:36 -0700 (PDT)
Message-ID: <20030507085145.L26747-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305071047270.29670-100000@q8.nrnet.org>


On Wed, 7 May 2003, Thomas Good wrote:

> On Wed, 7 May 2003, Tom Lane wrote:
>
> > Thomas Good <tomg@sqlclinic.net> writes:
> > > Another item: if I say 'export PGDATESTYLE=US' and ask psql for
> > > the date I get back an ISO date (YYYY-MM-DD).  What region of this
> > > US is this, I wonder?  Must be San Francisco (maybe Josh knows ;-)
> >
> > That's only setting a substyle --- one that's not relevant to the ISO
> > major style (at least not on output).  See the SET reference page.
>
> Tom,
>
> So the closest approximation to the default "postgres[ql]" date style
> of MM-DD-YYYY (note delimiters) is: SQL,US which returns a
> MM/DD/YYYY 00:00:00 value when doing some date arithmetic?

I think you're getting a timestamp after doing that date arithmetic.  Does
casting it back to a date help any?




view thread (10+ messages)  latest in thread

Message-ID: <20030507085145.L26747-100000@megazone23.bigpanda.com>
Permalink:  ../20030507085145.L26747-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20030507085145.L26747-100000@megazone23.bigpanda.com

 · 

reply

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: sszabo@megazone23.bigpanda.com, tomg@sqlclinic.net, tgl@sss.pgh.pa.us, barwick@gmx.net
  Subject: Re: Date Anomaly??
  In-Reply-To: <20030507085145.L26747-100000@megazone23.bigpanda.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