Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SqliteDateSql.php

SqliteDateSql::$replace

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

Type: array

File

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

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 with leading zeros.
'h' => '%H',
    'i' => '%M',
    's' => '%S',
    // No format for AM/PM.
'A' => '',
];

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal