xxxxxxxxxx
import datetime
# Get current time
current_time = datetime.datetime.now()
# Get time zone of India (assuming system time zone is UTC)
india_timezone = datetime.timezone(datetime.timedelta(hours=5, minutes=30))
# Convert current time to India's time zone
current_time_india = current_time.astimezone(india_timezone)
# Print the time zone
print(current_time_india.strftime("%z"))
xxxxxxxxxx
import pytz
# Get the current time zone in India
india_timezone = pytz.timezone('Asia/Kolkata')
current_timezone = india_timezone.localize(pytz.datetime.datetime.now())
# Print the current time zone in India
print(current_timezone.tzinfo)