0

So, I am facing a problem in timezone conversion. I know that in pytz library, if you pass timezone name, you will get timezone object. Ex. timezone('Asia/Kolkata'). But, is there any way that we can retrieve the timezone using UTC offset or timezone abbreviation. 1. If I pass some_func('UTC+5:30') gives me 'Asia/Kolkata' or timezone object. 2. If I pass some_func('IST') it gives me 'Asia/Kolkata' or timezone object.

Ivan Kolesnikov
  • 1,739
  • 1
  • 23
  • 43
reetesh11
  • 633
  • 1
  • 9
  • 16

0 Answers0