X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1031053B28 for ; Fri, 8 Apr 2005 14:50:54 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19049-10 for ; Fri, 8 Apr 2005 13:50:49 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 4A78D5385D for ; Fri, 8 Apr 2005 14:50:48 +0100 (BST) Received: (qmail 24759 invoked by uid 500); 8 Apr 2005 14:07:52 -0000 Date: Fri, 8 Apr 2005 09:07:52 -0500 From: Bruno Wolff III To: ljb Cc: pgsql-interfaces@postgresql.org Subject: Re: What is the binary format for timestamps? Message-ID: <20050408140752.GB15927@wolff.to> Mail-Followup-To: Bruno Wolff III , ljb , pgsql-interfaces@postgresql.org References: <4255A00F.1010409@innovision.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/27 X-Sequence-Number: 5443 On Fri, Apr 08, 2005 at 01:02:07 +0000, ljb wrote: > > A timestamp is returned as an 8-byte big-endian double precision number of > seconds since POSTGRES_EPOCH_DATE. > A time is returned as an 8-byte big-endian double precision number of > seconds since midnight. > POSTGRES_EPOCH_DATE is January 1, 2000 (2000-01-01). I believe building with --enable-integer-datetimes will change this.