def time_to_utc(time):

    utc_zone = tz.tzutc()
    dt = tparser.parse(time)
    in_utc = dt.astimezone(utc_zone).strftime("%Y-%m-%dT%H:%M:%S%z")
    return in_utc
Returns 'UTC' conversion of the given time in "ISO-8601 like" format.
dataset/ETHPy150Open Djacket/djacket/core/backend/utils/date.py/time_to_utc