def datetime_tuple_to_iso(tup):
 iso = datetime.strftime(tup.astimezone(iso8601.iso8601.UTC), '%Y-%m-%dT%H:%M:%S.%fZ')
 return iso

def datetime_tuple_to_iso ( tup ) : iso = datetime . strftime ( tup . astimezone ( iso8601 . iso8601 . UTC ) , '%Y-%m-%dT%H:%M:%S.%fZ' ) return iso
converts a datetime tuple to a utc iso time string .