def utc_timestamp_to_datetime(timestamp):
 if (timestamp is not None):
  return datetime.fromtimestamp(timestamp, utc)

def utc_timestamp_to_datetime ( timestamp ) : if ( timestamp is not None ) : return datetime . fromtimestamp ( timestamp , utc )
converts the given timestamp to a datetime instance .