Re: what is the date format in binary query results

From: Samantha Atkins <sjatkins(at)mac(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: what is the date format in binary query results
Date: 2007-12-12 07:18:39
Message-ID: CDCA64DC-63AB-4A10-BE98-B7CE103712EA@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How can it be a simple 8 byte int or float and specify a timezone?
This is only a time interval from a fixed date/time. Where is the
timezone part?

On Nov 8, 2007, at 7:18 AM, Tom Lane wrote:

> Samantha Atkins <sjatkins(at)mac(dot)com> writes:
>> What can I expect for a date format from a PGresult containing binary
>> results? Specifically the Oid type is TIMESTAMPTZOID.
>
> It's either an int8 representing microseconds away from 2000-01-01
> 00:00:00 UTC, or a float8 representing seconds away from the same
> origin.
>
> regards, tom lane

- samantha

Vote Ron Paul for President in 2008 -- Save Our Constitution!
Go to RonPaul2008.com, and search "Ron Paul" on YouTube

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ken Johanson 2007-12-12 08:01:16 Re: RETURNING clause: how to specifiy column indexes?
Previous Message Samantha Atkins 2007-12-12 07:14:51 Re: what is the date format in binary query results