Lines Matching refs:date
46 …$date = new DateTime($matches[1] . '-' . $matches[2] . '-' . $matches[3] . ' ' . $matches[4] . ':'…
50 return $date;
57 * @param string $date
61 static public function parseDate($date, DateTimeZone $tz = null) { argument
64 $result = preg_match('/^([0-9]{4})([0-1][0-9])([0-3][0-9])$/',$date,$matches);
67 throw new LogicException('The supplied iCalendar date value is incorrect: ' . $date);
74 $date = new DateTime($matches[1] . '-' . $matches[2] . '-' . $matches[3], $tz);
75 return $date;
177 * @param string $date
181 static public function parse($date, $referenceTz = null) { argument
183 if ($date[0]==='P' || ($date[0]==='-' && $date[1]==='P')) {
184 return self::parseDuration($date);
185 } elseif (strlen($date)===8) {
186 return self::parseDate($date, $referenceTz);
188 return self::parseDateTime($date, $referenceTz);
245 * @param string $date
248 static public function parseVCardDateTime($date) { argument
273 if (!preg_match($regex, $date, $matches)) {
298 if (!preg_match($regex, $date, $matches)) {
299 throw new InvalidArgumentException('Invalid vCard date-time string: ' . $date);
368 * @param string $date
371 static public function parseVCardTime($date) { argument
387 if (!preg_match($regex, $date, $matches)) {
403 if (!preg_match($regex, $date, $matches)) {
404 throw new InvalidArgumentException('Invalid vCard time string: ' . $date);