From: | Vik Fearing <vik(dot)fearing(at)dalibo(dot)com> |
---|---|
To: | miaoyimin(at)huawei(dot)com, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #9265: why the same interval can't get the same timestamp? |
Date: | 2014-02-18 14:24:24 |
Message-ID: | 53036D18.60806@dalibo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 02/18/2014 01:06 PM, miaoyimin(at)huawei(dot)com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 9265
> Logged by: yimin
> Email address: miaoyimin(at)huawei(dot)com
> PostgreSQL version: 9.2.6
> Operating system: suse 10.3
> Description:
>
> postgres=# select ('epoch'::pg_catalog.timestamptz + 1386201600 * '1
> second'::pg_catalog.interval);
> ?column?
> ------------------------
> 2013-12-05 08:00:00+08
> (1 row)
>
> postgres=# select ('epoch'::pg_catalog.timestamptz + 16044 * '1
> day'::pg_catalog.interval);
> ?column?
> ------------------------
> 2013-12-05 07:30:00+08
> (1 row)
>
> postgres=# show timezone;
> TimeZone
> -------------------
> Asia/Kuala_Lumpur
> (1 row)
>
>
The timezone changed by thirty minutes on December 31, 1981 so the
number of days since epoch is not the same as the number of seconds.
--
Vik
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-02-18 14:26:17 | Re: BUG #9265: why the same interval can't get the same timestamp? |
Previous Message | miaoyimin | 2014-02-18 12:06:21 | BUG #9265: why the same interval can't get the same timestamp? |