Re: what is the date format in binary query results - Mailing list pgsql-general

From Tom Lane
Subject Re: what is the date format in binary query results
Date
Msg-id 24529.1194535138@sss.pgh.pa.us
Whole thread Raw
In response to what is the date format in binary query results  (Samantha Atkins <sjatkins@mac.com>)
Responses Re: what is the date format in binary query results  (Reg Me Please <regmeplease@gmail.com>)
Re: what is the date format in binary query results  (Samantha Atkins <sjatkins@mac.com>)
Re: what is the date format in binary query results  (Samantha Atkins <sjatkins@mac.com>)
List pgsql-general
Samantha Atkins <sjatkins@mac.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

pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: why there is no interval / interval operator?
Next
From: Tom Lane
Date:
Subject: Re: "Resurrected" data files - problem?