Received: from thor.tht.net (thor.tht.net [209.47.145.4]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eB4FTX055120 for ; Mon, 4 Dec 2000 10:29:33 -0500 (EST) (envelope-from aalang@rutgersinsurance.com) Received: from bush.rutgersinsurance.com (IDENT:root@rutgersinsurance.com [38.138.71.194]) by thor.tht.net (8.9.3/8.9.3) with ESMTP id JAA41767 for ; Mon, 4 Dec 2000 09:51:24 GMT (envelope-from aalang@rutgersinsurance.com) Received: from 6014cwpza006 ([10.10.10.51]) by bush.rutgersinsurance.com (8.9.3/8.9.3) with SMTP id IAA04863 for ; Mon, 4 Dec 2000 08:55:43 -0500 Message-ID: <004f01c05df9$b26b7300$330a0a0a@6014cwpza006> From: "Adam Lang" To: References: <6454.001203@mclink.it> Subject: Re: timestamp Date: Mon, 4 Dec 2000 08:54:18 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200012/2 X-Sequence-Number: 45 For timestamping in PHP, I use mktime and getdate functions. Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com ----- Original Message ----- From: "Nico D" To: Sent: Sunday, December 03, 2000 4:53 AM Subject: [PHP] timestamp > Is there any function that converts the internal PG timestamp format into unix > timestamp format? > > Or viceversa, is there a PHP function that formats properly > the PG timestamp according to the setlocale setting? > > I'm trying to get the CPU-wasteless time conversion. > (I'm using PG 7.0.2) > > Thanks > Nico >