def sanitize_timestamp(timestamp):
 if (not timestamp):
  return timestamp
 if (not isinstance(timestamp, datetime.datetime)):
  timestamp = timeutils.parse_isotime(timestamp)
 return timeutils.normalize_time(timestamp)

def sanitize_timestamp ( timestamp ) : if ( not timestamp ) : return timestamp if ( not isinstance ( timestamp , datetime . datetime ) ) : timestamp = timeutils . parse_isotime ( timestamp ) return timeutils . normalize_time ( timestamp )
return a naive utc datetime object .