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: "Otto Blomqvist"
Date:
Subject: Problems with Set Returning Functions (SRFs)
Next
From: "Karthik Dakshinamoorthy"
Date:
Subject: [ocpfree] Problem finding the time difference while tuning a query