@param \DateTime $start
@param \DateTime $end

@return int
550432
public function computeNumTimesFiredBetween(\DateTime $start, \DateTime $end)
    {
        if ($this->getRepeatInterval() < 1) {
            return 0;
        }

        $time = ((int) $end->format('U')) - ((int) $start->format('U'));

        return (int) ($time / $this->getRepeatInterval());
    }
1271928
public function getEndTimeFromStartTime(\DateTime $startTime)
    {
        $endTime  = clone $startTime;
        $endTime->add(\DateInterval::createFromDateString('+2 hour'));

        return $endTime;
    }
719220
private function microtime_diff($start, $end = null)
    {
        if (!$end) {
            $end = microtime();
        }
        list($start_usec, $start_sec) = explode(" ", $start);
        list($end_usec, $end_sec) = explode(" ", $end);
        $diff_sec = intval($end_sec) - intval($start_sec);
        $diff_usec = floatval($end_usec) - floatval($start_usec);
        return floatval($diff_sec) + $diff_usec;
    }
1038538
protected function getTagEndIndex(array $tokens, int $start, int $end): int
    {
        for ($i = $end; $i > $start; $i--) {
            if ($tokens[$i]['code'] !== T_DOC_COMMENT_STRING) {
                continue;
            }

            return $i;
        }

        return $start;
    }
767138
public function overlaps(\DateTime $start, \DateTime $end) {
    $overlaps = FALSE;

    if ($this->dateIsEarlier($start) &&
      ($this->dateIsInRange($end) || $this->dateIsLater($end))) {
      $overlaps = TRUE;
    } elseif ($this->dateIsInRange($start) &&
      ($this->dateIsInRange($end) || $this->dateIsLater($end))) {
      $overlaps = TRUE;
    }

    return $overlaps;
  }
472675
public function getUrlRange($start, $end)
    {
        $urls = [];

        for ($page = $start; $page <= $end; $page++) {
            $urls[$page] = $this->url($page);
        }

        return $urls;
    }
256251
public function delete(int $start, int $end) {
        $this->arrayList->removeRange($start, $end);
    }
454734
public static function diffDateTimeSeconds($dateTimeStart, $dateTimeEnd)
    {
        $ts1 = strtotime($dateTimeStart);
        $ts2 = strtotime($dateTimeEnd);
        $secondsDiff = $ts2 - $ts1;
        return $secondsDiff;
    }
712848
public function lgetrange($key, $start, $end)
    {
        try {
            return $this->redis->lgetrange($key, $start, $end);
        } catch (\RedisException $e) {
            die("Error!: " . $e->getMessage() . "<br/>");
        }
    }
208495
public static function createYears($start, $end)
    {
        $result = array();

        for ($i = $start; $i < $end + 1; $i++) {
            $result[$i] = $i;
        }

        return $result;
    }
1301782
public function source($start = null, $end = null)
    {
        $source = '';
        $start = (int) $start;
        $end = $end === null ? ($this->count() - 1) : (int) $end;
        for ($i = $start; $i <= $end; $i++) {
            $source .= $this->_data[$i][1];
        }
        return $source;
    }
113727
public function getBetweenReverse($content, $start, $end)
    {
        $endIndex = strrpos($content, $end);
        $startIndex = strrpos($content, $start, -1 * (strlen($content) - $endIndex)) + strlen($start);
        return substr($content, $startIndex, $endIndex - $startIndex);
    }
696213
public function readBetween(int $start, int $end) : string
    {
        return implode("\n", $this->readLinesBetween($start, $end));
    }
459280
public function subSequence(int $start, int $end) {
        $arrayList = $this->arrayList->subList($start, $end);
        $stringBuilder = $this->arrayListToStringBuilder($arrayList);
        return $stringBuilder;
    }
472473
public static function changeStatus($start, $end)
	{
		if ( empty($start) || ! is_string($start)) {
			throw new WorkflowException('$start must be a string');
		}

		if ( empty($end) || ! is_string($end)) {
			throw new WorkflowException('$end must be a string');
		}

		return 'from {'.$start.'} to {'.$end.'}';
	}
1324268
public static function getDayRangeInBetweenDate($startDateTime, $endDateTime, $sort = false, $format = 'Y-m-d')
    {
        $startDateTime = self::getTimestamp($startDateTime);
        $endDateTime = self::getTimestamp($endDateTime);
        $num = ($endDateTime - $startDateTime) / 86400;
        $arr = [];
        for ($i = 0; $i <= $num; $i++) {
            $arr [] = date($format, $startDateTime + 86400 * $i);
        }
        return $sort ? array_reverse($arr) : $arr;
    }
1140899
public function isInRange($start, $end, $byte)
    {
        $range = range($start, $end);

        return in_array(ord($byte), $range);
    }