You are here

protected static property SqliteDateSql::$replace in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/query/SqliteDateSql.php \Drupal\views\Plugin\views\query\SqliteDateSql::replace

An array of PHP-to-SQLite date replacement patterns.

Type: array

File

core/modules/views/src/Plugin/views/query/SqliteDateSql.php, line 32

Class

SqliteDateSql
SQLite-specific date handling.

Namespace

Drupal\views\Plugin\views\query

Code

protected static $replace = [
  'Y' => '%Y',
  // No format for 2 digit year number.
  'y' => '%Y',
  // No format for 3 letter month name.
  'M' => '%m',
  'm' => '%m',
  // No format for month number without leading zeros.
  'n' => '%m',
  // No format for full month name.
  'F' => '%m',
  // No format for 3 letter day name.
  'D' => '%d',
  'd' => '%d',
  // No format for full day name.
  'l' => '%d',
  // no format for day of month number without leading zeros.
  'j' => '%d',
  'W' => '%W',
  'H' => '%H',
  // No format for 12 hour hour with leading zeros.
  'h' => '%H',
  'i' => '%M',
  's' => '%S',
  // No format for AM/PM.
  'A' => '',
];