pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Faulks <faulksp@iinet.net.au>
To: pgsql-sql@postgresql.org
Subject: Re: date arithmetic with columns
Date: Sun, 04 Mar 2012 22:29:23 +1100
Message-ID: <4F535213.7070402@iinet.net.au> (raw)
In-Reply-To: <87hay4pump.fsf@hf.protecting.net>
References: <4F4E818F.9030402@iinet.net.au>
	<87hay4pump.fsf@hf.protecting.net>

Good question.

I'm porting a (never actually finished) app from Firebird to Postgres. 
Now that I've re-read how the timestamptz (which Firebird doesn't have) 
actually works, I think I'll change the tables and get rid of the 
timezone lookup.

Thanks

On 4/03/2012 8:45 PM, hari.fuchs@gmail.com wrote:
> Peter Faulks<faulksp@iinet.net.au>  writes:
>
>> I have two columns in two distinct tables, one is the starting time of
>> an event, timestamp without time zone. Data is the utc datetime (for
>> sorting across time zones), the other is the number of minutes to add.
>
> Maybe I'm missing something, but why don't you just use timestamp with
> timezone instead?
>
>




view thread (5+ messages)

Message-ID: <4F535213.7070402@iinet.net.au>
Permalink:  ../4F535213.7070402@iinet.net.au/
Also on:    postgresql.org/message-id/4F535213.7070402@iinet.net.au

 · 

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: faulksp@iinet.net.au
  Subject: Re: date arithmetic with columns
  In-Reply-To: <4F535213.7070402@iinet.net.au>

* 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