Re: Inputting relative datetimes - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Inputting relative datetimes
Date
Msg-id 1270115D-376B-4B5D-B061-1688B96DAF04@nasby.net
Whole thread Raw
In response to Re: Inputting relative datetimes  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: Inputting relative datetimes
List pgsql-hackers
On Aug 25, 2011, at 5:08 AM, Dean Rasheed wrote:
>> Funny you should mention intervals...
>>
>> timestamptz 'today' - interval '5 days'
>> timestamptz 'now' + interval '2 hours'
>>
>
> Yes, but what I am trying to achieve is a way of entering such
> relative timestamps using a single input value, so that absolute and
> relative timestamps can both be bound to a SQL query using just one
> variable.


Even if the community doesn't want to add this to core, I think it would be a great add-on to put on PGXN. If you don't
feelup to writing it themselves, perhaps you would pay one of the consulting companies to do it for them? 
--
Jim C. Nasby, Database Architect                   jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pg_restore --no-post-data and --post-data-only
Next
From: Jim Nasby
Date:
Subject: Re: pg_restore --no-post-data and --post-data-only