@classmethod
  def utcfromtimestamp(cls, timestamp, allow_future=False):
    try:
      timestamp = int(float(timestamp))
      dt = datetime.datetime.utcfromtimestamp(timestamp)
    except (TypeError, ValueError):
      raise ValueError(
          'timestamp is None, empty, or otherwise invalid: %s' % timestamp)
    now = datetime.datetime.utcnow()
    if not allow_future and dt > now:
      msg = 'datetime in the future: %s' % dt
      if dt > (now + datetime.timedelta(minutes=66)):
        # raise a slightly different exception for > 66mins to allow for more
        # verbose logging.
        raise EpochExtremeFutureValueError(msg)
      raise EpochFutureValueError(msg)
    return dt
find pvalues by interpolation, eiter cdf(x) or sf(x)
dataset/ETHPy150Open google/simian/src/simian/mac/common/util.py/Datetime.utcfromtimestamp--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/stats/tabledist.py/TableDist.prob