pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: rwa@mosaic-ag.com
Cc: aydin.toprak@intengo.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: How to insert "date" as timestamp
Date: Thu, 13 Oct 2005 09:04:41 -0500
Message-ID: <s34e2339.042@gwmta.wicourts.gov> (raw)

Good point regarding the recent timestamp fixes, although
I think they are in the dev402 jar, so one need not go to CVS
and do a build.

I definitely would not use timestamp without time zone even
within a single time zone unless that time zone didn't use
daylight saving time, or I was very confident that I didn't need
to record times in the wee hours on days when the time
shifted.  It's always safer to use timestamp with time zone
when what you want to record is an instant in time.

The only use case I've been able to think of where timestamp
without time zone is semantically correct is where a publisher
sets a release for, say, the next Harry Potter book.  Having
attended a late night book release party this summer so that
my kids could pick up their book as soon as 12:01 a.m. rolled
into our time zone, I can see at least one use case for this
data type.

-Kevin


>>> Roland Walter <rwa@mosaic-ag.com> 10/13/05 3:08 AM >>>
And I would use TIMESTAMP without a time zone, in the case I know all 
database clients are in the same time zone.




view thread (10+ messages)  latest in thread

Message-ID: <s34e2339.042@gwmta.wicourts.gov>
Permalink:  ../s34e2339.042@gwmta.wicourts.gov/
Also on:    postgresql.org/message-id/s34e2339.042@gwmta.wicourts.gov

 · 

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 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-jdbc@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, rwa@mosaic-ag.com, aydin.toprak@intengo.com
  Subject: Re: How to insert "date" as timestamp
  In-Reply-To: <s34e2339.042@gwmta.wicourts.gov>
  References: <s34e2339.042@gwmta.wicourts.gov>

* 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