Lines Matching refs:match

722         if (preg_match($pcre, $date, $match)) {
724 $year = (int) $match['year'];
725 $month = isset($match['month']) ? (int) $match['month'] : 1;
726 $day = isset($match['day']) ? (int) $match['day'] : 1;
727 $hour = isset($match['hour']) ? (int) $match['hour'] : 0;
728 $minute = isset($match['minute']) ? (int) $match['minute'] : 0;
729 $second = isset($match['second']) ? (int) $match['second'] : 0;
730 $second_fraction = isset($match['second_fraction']) ? ((int) $match['second_fraction']) / (10 ** strlen($match['second_fraction'])) : 0;
731 $tz_sign = ($match['tz_sign'] ?? '') === '-' ? -1 : 1;
732 $tz_hour = isset($match['tz_hour']) ? (int) $match['tz_hour'] : 0;
733 $tz_minute = isset($match['tz_minute']) ? (int) $match['tz_minute'] : 0;
822 if (preg_match($pcre, $this->remove_rfc2822_comments($date), $match)) {
839 $month = $this->month[strtolower($match[3])];
842 if ($match[8] !== '') {
843 $timezone = $match[9] * 3600;
844 $timezone += $match[10] * 60;
845 if ($match[8] === '-') {
850 elseif (isset($this->timezone[strtoupper($match[11])])) {
851 $timezone = $this->timezone[strtoupper($match[11])];
859 if ($match[4] < 50) {
860 $match[4] += 2000;
861 } elseif ($match[4] < 1000) {
862 $match[4] += 1900;
866 if ($match[7] !== '') {
867 $second = $match[7];
872 return gmmktime(intval($match[5]), intval($match[6]), intval($second), intval($month), intval($match[2]), intval($match[4])) - $timezone;
896 if (preg_match($pcre, $date, $match)) {
910 $month = $this->month[strtolower($match[3])];
913 if (isset($this->timezone[strtoupper($match[8])])) {
914 $timezone = $this->timezone[strtoupper($match[8])];
922 if ($match[4] < 50) {
923 $match[4] += 2000;
925 $match[4] += 1900;
928 return gmmktime($match[5], $match[6], $match[7], $month, $match[2], $match[4]) - $timezone;
953 if (preg_match($pcre, $date, $match)) {
965 $month = $this->month[strtolower($match[2])];
966 return gmmktime((int) $match[4], (int) $match[5], (int) $match[6], $month, (int) $match[3], (int) $match[7]);