Received: from snigglefritz.expressus.com (dhcphost11.expressus.com [64.114.34.80]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f16Idkx25645 for ; Tue, 6 Feb 2001 13:39:46 -0500 (EST) (envelope-from jkakar@expressus.com) Received: (from jkakar@localhost) by snigglefritz.expressus.com (8.11.2/8.11.1/Debian 8.11.0-6) id f16Idhq13287 for pgsql-sql@postgresql.org; Tue, 6 Feb 2001 10:39:43 -0800 From: jkakar@expressus.com Date: Tue, 6 Feb 2001 10:39:39 -0800 To: pgsql-sql@postgresql.org Subject: timestamp- milliseconds since epoch output Message-ID: <20010206103939.A13042@expressus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i X-Archive-Number: 200102/92 X-Sequence-Number: 1270 Hi, I'm using a timestamp field called date_created. Whenever I select it I get: select date_created from tbl_user; date_created ------------------------ 2001-02-05 17:23:26-08 2001-02-05 17:45:39-08 2001-02-03 03:58:53-08 (3 rows) I've tried using variations of to_char and to_timestamp but can't seem to get the timestamp as a value of milliseconds since the Epoch (Jan 1, 1970). I've been looking through the user manual but can't seem to find anything... might be nice to put it in there as this is probably a very common operation. Any ideas? Thanks, Jamu. -- Jamu Kakar (Developer) Expressus Design Studio, Inc. jkakar@expressus.com 708-1641 Lonsdale Avenue V: (604) 903-6994 North Vancouver, BC, V7M 2J5