Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id A6C40475C90 for ; Tue, 11 Jun 2002 16:44:24 -0400 (EDT) Received: from opie.usu.edu (opie.usu.edu [129.123.1.150]) by postgresql.org (Postfix) with ESMTP id 502ED4765F8 for ; Tue, 11 Jun 2002 16:40:44 -0400 (EDT) Received: from webmail.usu.edu ("port 4670"@webster.usu.edu [129.123.1.90]) by cc.usu.edu (PMDF V5.2-32 #39089) with ESMTP id <01KIT3L2I152939ZXS@cc.usu.edu> for pgsql-sql@postgresql.org; Tue, 11 Jun 2002 14:40:43 MDT Date: Tue, 11 Jun 2002 14:40:42 -0600 From: kumar Subject: Timestamp problem To: pgsql-sql@postgresql.org Message-id: <3D06EF85@webmail.usu.edu> MIME-version: 1.0 X-Mailer: WebMail (Hydra) SMTP v3.62 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: 7bit X-WebMail-UserID: kumar X-EXP32-SerialNo: 00002751 X-Archive-Number: 200206/146 X-Sequence-Number: 8111 Hai All, I have been using Mysql in which I used unix_timestamp() function to retrieve the time using the queries. As it gives time in seconds the life is easy to store it in database and to compare with the other times. But now I am moving to PostgreSQL in which there is a function current_timestamp to retrieve time, but now it became hard for me to store it in database in the string format and to compare it with other times again. Is there any function in PostgreSQL which returns time in seconds like unix_timestamp() in Mysql. Please suggest me some ways to get rid of this problem. My email: kumar@cc.usu.edu . Thank you All, Kumar.