From: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
---|---|
To: | "Josh Berkus" <josh(at)agliodbs(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Calculation Error on Epoch? |
Date: | 2002-08-28 03:54:44 |
Message-ID: | GNELIHDDFBOCMGBFGEFOMEONCDAA.chriskl@familyhealth.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
What if you try this:
SELECT date_part('epoch','2002-08-28'::TIMESTAMP WITH TIME ZONE)
It's probably 8 hours time different to GMT or somethign like that...
Chris
> -----Original Message-----
> From: pgsql-sql-owner(at)postgresql(dot)org
> [mailto:pgsql-sql-owner(at)postgresql(dot)org]On Behalf Of Josh Berkus
> Sent: Wednesday, 28 August 2002 11:31 AM
> To: pgsql-sql(at)postgresql(dot)org
> Subject: [SQL] Calculation Error on Epoch?
>
>
> Folks,
>
> I'm having a problem with:
>
> SELECT date_part('epoch','2002-08-28'::TIMESTAMP)
>
> Which is consistently returning an epoch timestamp that evaluates to
> 8.27.2002. Is this a known issue? A cross-platform problem?
> Suggestions?
>
> -Josh Berkus
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Arnold Putong | 2002-08-28 04:03:05 | SERIAL parameters |
Previous Message | Josh Berkus | 2002-08-28 03:30:32 | Calculation Error on Epoch? |