Re: how to add seconds to a TimestampTz - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: how to add seconds to a TimestampTz
Date
Msg-id 20070315142023.GD5645@alvh.no-ip.org
Whole thread Raw
In response to Re: how to add seconds to a TimestampTz  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
List pgsql-hackers
Grzegorz Jaskiewicz wrote:
> 
> On Mar 15, 2007, at 5:58 AM, Tom Lane wrote:
> 
> >
> >?  I'm not sure what would be the most convenient realization
> >of this at the C level, but please stay away from time_t ...
> 
> what's wrong with time_t ? Does postgres has some sort of "time" API,  
> that can be used instead?

Sure.  See TimestampTz (as mentioned in the subject).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Eddie Stanley
Date:
Subject: Re: My honours project - databases using dynamically attached entity-properties
Next
From: Alvaro Herrera
Date:
Subject: Re: Additional global stats for pg_database?