Skip to content Skip to sidebar Skip to footer

How To Use Abbreviated Timezone Name(pst, Ist) In Pytz

I need to know the way of using Abbreviated timezone name like PST, IST etc on pytz. Now I can be able to convert between timezone using the timezone name like 'America/Los_Angeles

Solution 1:

This is by nature impossible, because some abbreviations can mean multiple (different) time zones:

http://www.timeanddate.com/time/zones/

If you want it to work specifically for your timezones, make a dictionary mapping abbreviation to long name.

Post a Comment for "How To Use Abbreviated Timezone Name(pst, Ist) In Pytz"