pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Robert Burgholzer <rburghol@vt.edu>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Timestamp Shifts when calling to_timestamp(extract (epoch from timestamp))
Date: Tue, 12 May 2015 12:31:25 -0600
Message-ID: <4272FB86-B759-42FD-8DAF-1B4C5D1E218A@elevated-dev.com> (raw)
In-Reply-To: <CACT-NGL+0jSEaz4MQZLkdv7FmdcTPuvhNKxqzpVw3+S4yXfFjg@mail.gmail.com>
References: <CACT-NGKQRtBGKOGUMT_goxyKu=yym8ET1Q5my-yjfuWW++uXbA@mail.gmail.com>
	<4FD9A31F-C7E3-4A27-B431-5B284BD3EF28@elevated-dev.com>
	<CACT-NGL+0jSEaz4MQZLkdv7FmdcTPuvhNKxqzpVw3+S4yXfFjg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On May 12, 2015, at 12:07 PM, Robert Burgholzer <rburghol@vt.edu> wrote:
> 
> But if nothing else, it still seems to me that "to_timestamp" and "extract(epoch)" are making different assumptions when TZ is not known.

Not really, it’s just that by default the result of to_timestamp is *displayed* in your local zone.

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice







-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (8+ messages)  latest in thread

Message-ID: <4272FB86-B759-42FD-8DAF-1B4C5D1E218A@elevated-dev.com>
Permalink:  ../4272FB86-B759-42FD-8DAF-1B4C5D1E218A@elevated-dev.com/
Also on:    postgresql.org/message-id/4272FB86-B759-42FD-8DAF-1B4C5D1E218A@elevated-dev.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com, rburghol@vt.edu
  Subject: Re: Timestamp Shifts when calling to_timestamp(extract (epoch from timestamp))
  In-Reply-To: <4272FB86-B759-42FD-8DAF-1B4C5D1E218A@elevated-dev.com>

* 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