Re: Date/Time Conversion - Mailing list pgsql-sql

From Yasir Malik
Subject Re: Date/Time Conversion
Date
Msg-id Pine.NEB.4.60.0504022247540.14075@dab.cs.stevens-tech.edu
Whole thread Raw
In response to Date/Time Conversion  (James G Wilkinson <jgw@alpinegeophysics.com>)
List pgsql-sql
> 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');                      ^^^^^^^^
>

Wild guess, but shouldn't that be :00:00:00?

Regards,
Yasir




pgsql-sql by date:

Previous
From: "Bill Lawrence"
Date:
Subject: Getting the output of a function used in a where clause
Next
From: "Karthik Dakshinamoorthy"
Date:
Subject: [ocpfree] Problem finding the time difference while tuning a query