I've written below code in Python3.
import datetime as dt
a = dt.datetime(2020,7,24,9,0,0)
print(a)
This is showing below output.
2020-07-24 09:00:00
But it is not showing in localized format. Expected output should be as mentioned below as my timezone is 'Asia/Kolkata'.
2020-07-24 09:00:00+05:30
How to get this done?