1import datetime
2
3now = datetime.datetime.now()
4local_now = now.astimezone()
5local_tz = local_now.tzinfo
6local_tzname = local_tz.tzname(local_now)
7print(local_tzname)
1import pytz
2from datetime import datetime
3
4tz = pytz.timezone('Asia/Kathmandu')
5datetime = datetime.now()
6new_date = tz.localize(datetime)
7