Received: from tomts8-srv.bellnexxia.net (tomts8.bellnexxia.net [209.226.175.52]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5ELvVa02793 for ; Thu, 14 Jun 2001 17:57:31 -0400 (EDT) (envelope-from fbax@sympatico.ca) Received: from acer ([64.228.133.11]) by tomts8-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with SMTP id <20010614215730.NHXQ9224.tomts8-srv.bellnexxia.net@acer>; Thu, 14 Jun 2001 17:57:30 -0400 Message-Id: <3.0.6.32.20010614175554.00b3f9f0@pop6.sympatico.ca> X-Sender: b1wudu74@pop6.sympatico.ca X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 14 Jun 2001 17:55:54 -0400 To: Vivek Khera From: Frank Bax Subject: Re: Re: Timestamp without time zone Cc: pgsql-sql@postgresql.org In-Reply-To: <15144.55328.741285.104733@onceler.kciLink.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200106/217 X-Sequence-Number: 3475 select date_part('epoch',timestamp) from table; will give you the same result without using str2time at all. Did I miss something here? At 11:28 AM 6/14/01 -0400, Vivek Khera wrote: >>>>>> "AP" == Alex Pilosov writes: > >AP> Why do you _want_ to remove timezone from values in database? There is >AP> definitely a way to work around whatever problem you are having. > >Because my normal date parsing routines from perl's Date::Parse >library don't recognize it, and fail to parse the date. > >% perl -MDate::Parse -e 'print str2time("2001-06-14 12:00:00+04"),"\n";' > >% perl -MDate::Parse -e 'print str2time("2001-06-14 12:00:00"),"\n";' >992534400 > >-- >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >Vivek Khera, Ph.D. Khera Communications, Inc. >Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 >AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/