Re: how to add seconds to a TimestampTz

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: how to add seconds to a TimestampTz
Date: 2007-03-15 04:58:30
Message-ID: 28866.1173934710@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Is there a better way than going to time_t and back?

Isn't the standard SQL-level locution
timestamptz + numeric_value * '1 second'::interval
? I'm not sure what would be the most convenient realization
of this at the C level, but please stay away from time_t ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message SM 2007-03-15 05:23:34 Backend crash in 8.2.3 with plpgsql function
Previous Message Sailesh Krishnamurthy 2007-03-15 02:21:29 Re: how to add seconds to a TimestampTz