ConvertDatetoUTC

Converts a date from a different timezone to UTC timezone

Script Data


NameDescription
Script Typepython3
TagsUtility

Inputs


Argument NameDescription
dateDate to convert to UTC
date_formatDefault is "%Y-%m-%dT%H:%M:%S"
timezoneTimezone accepted by pytz. Default is America/Los_Angeles

Outputs


PathDescriptionType
UTCDateConverted Date in UTC timezoneUnknown
UTCDateEpochDate in Epoch (Unix time)Unknown