0
1316
To get an location time using python, the result time like (UTC-08:00) Pacific Time (US & Canada), use the following code.
import time
utc_offset = time.strftime('%z')
tz_name = time.tzname[0]
print('(UTC{0}) {1}'.format(utc_offset, tz_name))
(UTC-08:00) Pacific Time (US & Canada)
Comment here