Re: How to store the time zone with a timestamp

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: "Andrew B(dot) Young" <andrew_b_young(at)earthlink(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to store the time zone with a timestamp
Date: 2005-12-17 00:13:36
Message-ID: 20051217001336.GA53809@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Dec 16, 2005 at 11:25:22PM +0100, Martijn van Oosterhout wrote:
> On Fri, Dec 16, 2005 at 03:18:04PM -0600, Jim C. Nasby wrote:
> > BTW, if you wanted a more integrated solution, you could build a custom
> > type that would store the timestamp info. There's a good chance such
> > code would end up being what's used in the server as the official type,
> > too.
>
> Well, I wrote a module for storing arbitrary tags with base types. One
> of the uses would be for a timestamp that remembers the timezone. I
> havn't received all that much feedback on it which leads me to conclude
> timestamps-remebering-timezones are not a heavily requested feature.
> It's probably on the same level as the ENUM suggested a while ago.
> Interesting, but not enough to get it included into core.
>
> http://svana.org/kleptog/pgsql/taggedtypes.html
>
> That said, I'd love for a variation of this to be included since I
> beleive it has a lot of applications not thought of yet. If user-types
> could define their own typmod values, that'd make it complete.

Wow, that's damn cool and useful. You should put it on pgFoundry (at
least as a project that links back to your site) so people can find it
there.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2005-12-17 00:14:42 Re: Negative offsets
Previous Message Jim C. Nasby 2005-12-17 00:05:45 Re: [GENERAL] PL/pgSQL Function Help