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 ($matches[7]==='Z' || is_null($tz)) {
46 …$date = new DateTime($matches[1] . '-' . $matches[2] . '-' . $matches[3] . ' ' . $matches[4] . ':'…
64 $result = preg_match('/^([0-9]{4})([0-1][0-9])([0-3][0-9])$/',$date,$matches);
74 $date = new DateTime($matches[1] . '-' . $matches[2] . '-' . $matches[3], $tz);
91 …?P<day>\d+)D)?(T((?P<hour>\d+)H)?((?P<minute>\d+)M)?((?P<second>\d+)S)?)?$/', $duration, $matches);
98 if ($matches['plusminus']==='-') {
111 $matches[$part] = isset($matches[$part])&&$matches[$part]?(int)$matches[$part]:0;
118 $days = $matches['day'];
119 if ($matches['week']) {
120 $days+=$matches['week']*7;
125 if ($matches['minute'] || $matches['second'] || $matches['hour']) {
128 if ($matches['hour'])
129 $duration.=$matches['hour'].'H';
131 if ($matches['minute'])
132 $duration.=$matches['minute'].'M';
134 if ($matches['second'])
135 $duration.=$matches['second'].'S';
161 if (isset($matches[$part]) && $matches[$part]) {
162 $newDur.=' '.$matches[$part] . ' ' . $part . 's';
166 $newDur = ($matches['plusminus']==='-'?'-':'+') . trim($newDur);
273 if (!preg_match($regex, $date, $matches)) {
298 if (!preg_match($regex, $date, $matches)) {
316 if (empty($matches[$part])) {
318 } elseif ($matches[$part] === '-' || $matches[$part] === '--') {
321 $result[$part] = $matches[$part];
387 if (!preg_match($regex, $date, $matches)) {
403 if (!preg_match($regex, $date, $matches)) {
418 if (empty($matches[$part])) {
420 } elseif ($matches[$part] === '-') {
423 $result[$part] = $matches[$part];