from time import localtime
lt = localtime()
print(lt.tm_zone)
print(lt.tm_gmtoff / (60 * 60))
print(lt.tm_gmtoff / (60 * 60) - (1 if lt.tm_isdst == 1 else 0))
Get timezone used by datetime.datetime.fromtimestamp()