You are here

protected static property SqlsrvDateSql::$replace in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 4.2.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::replace
  2. 3.0.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::replace
  3. 3.1.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::replace
  4. 4.0.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::replace
  5. 4.1.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::replace

An array of PHP-to-MSSQL replacement patterns.

Type: array

File

src/Plugin/views/query/SqlsrvDateSql.php, line 29

Class

SqlsrvDateSql
MSSQL-specific date handling.

Namespace

Drupal\sqlsrv\Plugin\views\query

Code

protected static $replace = [
  'Y' => 'yyyy',
  'y' => 'yy',
  'M' => 'MMM',
  'm' => 'MM',
  'n' => 'M',
  'F' => 'MMMM',
  'D' => 'ddd',
  'd' => 'dd',
  'l' => 'ddd',
  'j' => 'd',
  // No week number format.
  'H' => 'HH',
  'h' => 'hh',
  'i' => 'mm',
  's' => 'ss',
  'A' => 'tt',
];