public inbox for [email protected]
help / color / mirror / Atom feedpg_timezone_names
2+ messages / 2 participants
[nested] [flat]
* pg_timezone_names
@ 2018-01-17 17:16 PG Doc comments form <[email protected]>
2018-01-17 17:33 ` Re: pg_timezone_names Tom Lane <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2018-01-17 17:16 UTC (permalink / raw)
To: [email protected]; +Cc: [email protected]
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/9.1/static/view-pg-timezone-names.html
Description:
We are exporting data from postgres into another "all in one" data store,
and i had a quick question regarding the time offsets. The UTC_OFFSET, does
it change when IS_DST is true/false? Or do I need to take the UTC_OFFSET
interval and then possibly add 1 more if IS_DST is true? Example: 1/1/2018
not in DST, interval says -10. On 3/1/2018, IS_DST turns to TRUE. Will the
interval now say -9, or do i need to take the -10 and substract 1 to get to
-9?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_timezone_names
2018-01-17 17:16 pg_timezone_names PG Doc comments form <[email protected]>
@ 2018-01-17 17:33 ` Tom Lane <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2018-01-17 17:33 UTC (permalink / raw)
To: [email protected]; +Cc: [email protected]
=?utf-8?q?PG_Doc_comments_form?= <[email protected]> writes:
> We are exporting data from postgres into another "all in one" data store,
> and i had a quick question regarding the time offsets. The UTC_OFFSET, does
> it change when IS_DST is true/false?
Yes; utc_offset reflects the zone's current offset from UTC, so it changes
with the seasons if the zone has DST laws.
> Or do I need to take the UTC_OFFSET
> interval and then possibly add 1 more if IS_DST is true?
Prepare to be disappointed; you can't assume it works like that.
See the thread starting here:
http://mm.icann.org/pipermail/tz/2017-December/025682.html
You haven't said what it is you are hoping to accomplish, so it's
hard to say if there's some safer way to do it.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-01-17 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-17 17:16 pg_timezone_names PG Doc comments form <[email protected]>
2018-01-17 17:33 ` Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox