From: Marvin Bellamy <marvin.bellamy@innovision.com>
To: pgsql-interfaces@postgresql.org
Subject: What is the binary format for timestamps?
Date: Thu, 07 Apr 2005 16:03:11 -0500
Message-ID: <4255A00F.1010409@innovision.com> (raw)
I'm trying to read/write timestamps as binary data, but I'm getting
garbage. It looks like there are 8 bytes of timestamp data (if I read
the headers correctly), which I had assumed was the time in millis from
the PostgreSQL epoch, but my values are way off. I wrote what I thought
was valid data to my timestamp columns, but my queries in the psql
console show (epoch?) for each one. When I read the binary content
back, I'd expect to get 0s, but I get some non-zero values.
--
Marvin Keith Bellamy
Software Engineer
Innovision Corporation
913.438.3200
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: marvin.bellamy@innovision.com
Subject: Re: What is the binary format for timestamps?
In-Reply-To: <4255A00F.1010409@innovision.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox