Lines Matching refs:matches

37 …/^([0-9]{4})([0-1][0-9])([0-3][0-9])T([0-2][0-9])([0-5][0-9])([0-5][0-9])([Z]?)$/', $dt, $matches);
43 if ('Z' === $matches[7] || is_null($tz)) {
48 …$date = new DateTimeImmutable($matches[1].'-'.$matches[2].'-'.$matches[3].' '.$matches[4].':'.$mat…
67 $result = preg_match('/^([0-9]{4})([0-1][0-9])([0-3][0-9])$/', $date, $matches);
78 $date = new DateTimeImmutable($matches[1].'-'.$matches[2].'-'.$matches[3], $tz);
99 …)?((?<day>\d+)D)?(T((?<hour>\d+)H)?((?<minute>\d+)M)?((?<second>\d+)S)?)?$/', $duration, $matches);
107 if ('-' === $matches['plusminus']) {
120 … $matches[$part] = isset($matches[$part]) && $matches[$part] ? (int) $matches[$part] : 0;
126 $days = $matches['day'];
128 if ($matches['week']) {
129 $days += $matches['week'] * 7;
136 if ($matches['minute'] || $matches['second'] || $matches['hour']) {
139 if ($matches['hour']) {
140 $duration .= $matches['hour'].'H';
143 if ($matches['minute']) {
144 $duration .= $matches['minute'].'M';
147 if ($matches['second']) {
148 $duration .= $matches['second'].'S';
176 if (isset($matches[$part]) && $matches[$part]) {
177 $newDur .= ' '.$matches[$part].' '.$part.'s';
181 $newDur = ('-' === $matches['plusminus'] ? '-' : '+').trim($newDur);
290 if (!preg_match($regex, $date, $matches)) {
314 if (!preg_match($regex, $date, $matches)) {
330 if (empty($matches[$part])) {
332 } elseif ('-' === $matches[$part] || '--' === $matches[$part]) {
335 $result[$part] = $matches[$part];
399 if (!preg_match($regex, $date, $matches)) {
414 if (!preg_match($regex, $date, $matches)) {
427 if (empty($matches[$part])) {
429 } elseif ('-' === $matches[$part]) {
432 $result[$part] = $matches[$part];
521 if (0 === preg_match($valueDate, $date, $matches)
522 && 0 === preg_match($valueDateTime, $date, $matches)
523 && 0 === preg_match($valueTime, $date, $matches)) {
546 if (!empty($matches[$part])) {
547 $value = $matches[$part];