在任意区域设置中获取任意时间的timezone缩写

时间:2017-01-04 17:40:35

标签: postgresql timezone timezone-offset timestamp-with-timezone

我在Postgres中有UTC时间和区域设置名称。我希望在特定时间获得当地时区缩写(时间很重要,例如America/New_York时区,缩写可能是EST或EDT,具体取决于时间是否在DST内。)

理想情况下,我会使用pg_timezone_nameshttps://www.postgresql.org/docs/9.6/static/view-pg-timezone-names.html)将时区名称映射为缩写,但pg_timezone_names基于CURRENT_TIMESTAMP,而不是基于{I}我关心的。

0 个答案:

没有答案