6

list of pytz time zones · GitHub

 1 year ago
source link: https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

list of pytz time zones · GitHub

Instantly share code, notes, and snippets.

Created November 16, 2016 09:14
list of pytz time zones

Line 488 Europe/Zurich is wrong. Compared to the other entries allways the capital of the european countries is used. The SWISS capital is Bern and not Zurich.
How can this be fixed?

This is expected behavior. The tz database uses large cities for Location, not necessarily captial cities. Since Zurich is much larger than Bern, it was chosen as the Location part in this specific time zone.

1.download latest pytz file (pytz-2019.3.tar.gz) from https://pypi.org/simple/pytz/

2.copy and extract it to site_packages directory on yor project

3.in cmd go to the exracted folder and run "python setup.py install"

4.TIME_ZONE = 'Etc/GMT+3' or country name

hey I would like United Arab Emirates in the list

@Adithya-Kalany He didn't just make this list, it's generated by pytz.

i there npt(nepal time)

Thank you for sharing this list

@Adithya-Kalany He didn't just make this list, it's generated by pytz.

Anyway, It is very useful information

i there npt(nepal time)

There is Asia/Kathmandu

Please change Europe/Kiev to Europe/Kyiv.
proof: https://en.wikipedia.org/wiki/Kyiv

is there a way to get common time zones in javascript like in pytz.common_timezones? I looked at a lot of libraries in JS but couldn't find anything similar. Any ideas?

Looks like there have now been 9 timezone name changes to pytz.all_timezones since this gist was made. (I don't think this list was expected to be up-to-date; it's just a heads up to others.)

jme900

commented

Sep 1, 2021

edited

I am hosting a very simple REST API that simply returns pytz.all_timezones. Feel free to use it for the most up-to-date timezone names in the pytz library.
URL: https://api-custom.eyesover.com/public/getZoneNames

again, not Kiev but Kyiv

ср, 1 вер. 2021 о 23:22 time2try ***@***.***> пише:

@SergMagpie please contact the authors behind the pytz library for this type of request. No one here has the ability to change the names of the timezones in this library. We have just provided a list that shows what the library offers (that someone else wrote).

Thank you very much. Just one question, if I use Europe/London timezone, will it reflect the change in London time due to daylight saving time adjustment?

@ANKAN985 yes. That's the beauty of this library. The UTC offset changes automatically for DST start/end :)

@time2try Thank you so much :)

Thank you so much! this helped me a lot

can someone please tell which is the timezone of brazil? like there are 4 brazil timezone I want the most accurate and commonly used one of them

@aditya-yadav-27 from your question, I'm guessing you are under the assumption there is only one time for all of Brazil, but that is incorrect. There are FOUR unique timezones in Brazil. You can see the four different time zones and their current times visualized here: https://www.timeanddate.com/time/zone/brazil

@time2try thanks that helped me a lot!

Россия/Екатеринбург добавьте

hi there

i just like to say i love your bot so keep up the great work

for Australian

Australia uses three main time zones:
Australian Western Standard Time (AWST; UTC+08:00),
Australian Central Standard Time (ACST; UTC+09:30),
Australian Eastern Standard Time (AEST; UTC+10:00).

you can also confirm here https://en.wikipedia.org/wiki/Time_in_Australia#:~:text=Australia%20uses%20three%20main%20time,UTC%2B10%3A00).

Is there a way we can enter just the name of the city and receive the local time there?

What would be timezone for Pacific Standard Time?

What would be timezone for Pacific Standard Time?

America/Los_Angeles should work. @the-lost-kite

Since I cannot find China in the list, I assume there is a typo in this entry: Asia/Chita

Nope, correcting myself here. China uses just one time zone for the whole country. It is listed as 'Asia/Shanghai'.

PRC refers to China, (People's republic of China), you can use "PRC" instead of "Asia/Shanghai"

trim21

commented

Jun 9, 2023

edited

Since I cannot find China in the list, I assume there is a typo in this entry: Asia/Chita

Nope, correcting myself here. China uses just one time zone for the whole country. It is listed as 'Asia/Shanghai'.

PRC refers to China, (People's republic of China), you can use "PRC" instead of "Asia/Shanghai"

Hint: PRC or Asia/Shanghai in pytz is UTC+08:06, consider to use ETC/GMT-8 for UTC+08:00.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK