from datetime import datetime from dateutil.tz import tzlocal utc = "+" + str(datetime.now(tzlocal()).utcoffset())