Re: Date Timezone

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: a(dot)maclean(at)cas(dot)edu(dot)au
Cc: General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Date Timezone
Date: 2007-11-22 21:51:23
Message-ID: 20071122215123.GD4891@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrew Maclean wrote:
> This extracts the time zone in seconds, but how do I add it to the datetime
> that I have?
>
> This is what I have been trying but it doesn't work:
> '2007-12-3'::timestamp + interval 'extract(timezone from now()) seconds'

'2007-12-3'::timestamp + extract(timezone from now()) * '1 second'::interval;

Please copy the list on replies.

--
Alvaro Herrera http://www.advogato.org/person/alvherre
"En el principio del tiempo era el desencanto. Y era la desolación. Y era
grande el escándalo, y el destello de monitores y el crujir de teclas."
("Sean los Pájaros Pulentios", Daniel Correa)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Maclean 2007-11-22 21:59:07 Re: Date Timezone
Previous Message Scott Marlowe 2007-11-22 21:30:52 Re: Date Timezone