def _to_timestamp_float(timestamp):
    """Convert timestamp to a pure floating point value

    None is encoded as inf
    """
    if timestamp is None:
        return float('inf')
    else:
        return float(timestamp)