Lines Matching refs:date
22 * Checks if date math is already escaped within request URI.
35 * Escapes date math symbols within request URI.
37 * @see https://www.elastic.co/guide/en/elasticsearch/reference/5.x/date-math-index-names.html
49 // Check if date math if used at all. Find last '>'. E.g. /<log-{now/d}>,log-2011.12.01/log/_refresh
174 * This is the lucene date format
176 * @param int|string $date Date input (could be string etc.) -> must be supported by strtotime
178 * @return string Converted date string
180 public static function convertDate($date)
182 if (\is_int($date)) {
183 $timestamp = $date;
185 $timestamp = \strtotime($date);
188 return \date('Y-m-d\TH:i:s\Z', $timestamp);