I want to read in a unix time into a timestamp and assign the timezone of Boise. Current timezone there is "MDT – Mountain Daylight Time (Daylight Saving Time)". It will switch to MST during winter time.
What is the right timezone to use, when I want want to have it not dependent on summer / winter time?
I want to have something like this
pd.Timestamp(1513393355, unit='s', tz='US/Pacific')
A few things:
Generally speaking, one should use America/Denver for most of US Mountain Time, which currently switches between MST (UTC-7) and MDT (UTC-6).
Use America/Phoenix for the part of US Mountain Time that does not currently use DST, such as applies in most (but not all) of Arizona.
Use Etc/GMT+7 if you need a fixed offset that is UTC-7 and never had DST. Be aware that the sign of the offset is inverted intentionally (Etc/GMT+7 = UTC-7).
You can use America/Boise, but you should only use it for the areas of southern Idaho and eastern Oregon that started DST four weeks late in 1974 (1974-02-03 instead of 1974-01-06), as described in the commentary of the TZ Database sources:
# Southern Idaho (Ada, Adams, Bannock, Bear Lake, Bingham, Blaine,
# Boise, Bonneville, Butte, Camas, Canyon, Caribou, Cassia, Clark,
# Custer, Elmore, Franklin, Fremont, Gem, Gooding, Jefferson, Jerome,
# Lemhi, Lincoln, Madison, Minidoka, Oneida, Owyhee, Payette, Power,
# Teton, Twin Falls, Valley, Washington counties, and the southern
# quarter of Idaho county) and eastern Oregon (most of Malheur County)
# switched four weeks late in 1974.
America/Denver.You can use US/Mountain, but understand that it is linked as an alias of America/Denver and is considered deprecated. It exists for backwards compatibility.
Area/Locality form instead of these older representations. Refer to the list of TZ Database time zones on Wikipedia.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With