function pdtWithinToleranceTest(pdtBufferEnd, maxFragLookUpTolerance, candidate) {
  var candidateLookupTolerance = Math.min(maxFragLookUpTolerance, candidate.duration + (candidate.deltaPTS ? candidate.deltaPTS : 0)) * 1000; // endProgramDateTime can be null, default to zero

  var endProgramDateTime = candidate.endProgramDateTime || 0;
  return endProgramDateTime - candidateLookupTolerance > pdtBufferEnd;
}
The test function used by the findFragmentByPdt's BinarySearch to look for the best match to the current buffer conditions.
This function tests the candidate's program date time values, as represented in Unix time
@param {*} candidate - The fragment to test
@param {number} [pdtBufferEnd = 0] - The Unix time representing the end of the current buffered range
@param {number} [maxFragLookUpTolerance = 0] - The amount of time that a fragment's start can be within in order to be considered contiguous
@returns {boolean} True if contiguous, false otherwise