From: | Frank Bax <fbax(at)sympatico(dot)ca> |
---|---|
To: | Vivek Khera <khera(at)kcilink(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Re: Timestamp without time zone |
Date: | 2001-06-14 21:55:54 |
Message-ID: | 3.0.6.32.20010614175554.00b3f9f0@pop6.sympatico.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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 <alex(at)pilosoft(dot)com> 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(at)kciLink(dot)com Rockville, MD +1-240-453-8497
>AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
From | Date | Subject | |
---|---|---|---|
Next Message | Matteo Centenaro | 2001-06-15 07:37:08 | Limit and insert |
Previous Message | Alex Pilosov | 2001-06-14 17:32:02 | Re: RE: search/replace in update |