From: Yasir Malik <ymalik@cs.stevens.edu>
To: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: Date/Time Conversion
Date: Sun, 3 Apr 2005 09:45:49 -0400 (EDT)
Message-ID: <Pine.NEB.4.60.0504030943400.21071@pink-elephant.cs.stevens-tech.edu> (raw)
In-Reply-To: <8222.1112500236@sss.pgh.pa.us>
References: <4249ED1F.6080909@alpinegeophysics.com>
<8222.1112500236@sss.pgh.pa.us>
> beta_jgw=# update scenario1.time_test set local_hour = extract(hour from
>to_timestamp(to_char(gmt_date,'YYYY-MM-DD')||'
> '||to_char(gmt_hour,'99')||':00:00-00','YYYY-MM-DD HH24:MI:SS') at time
>zone 'EST'); ^^^^^^^^
>
This sounds like a stupid answer, but shouldn't that be :00:00:00?
Regards,
Yasir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: ymalik@cs.stevens.edu
Subject: Re: Date/Time Conversion
In-Reply-To: <Pine.NEB.4.60.0504030943400.21071@pink-elephant.cs.stevens-tech.edu>
References: <4249ED1F.6080909@alpinegeophysics.com> <8222.1112500236@sss.pgh.pa.us> <Pine.NEB.4.60.0504030943400.21071@pink-elephant.cs.stevens-tech.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox