function SqliteDateSql::getDateField
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/query/SqliteDateSql.php \Drupal\views\Plugin\views\query\SqliteDateSql::getDateField()
- 10 core/modules/views/src/Plugin/views/query/SqliteDateSql.php \Drupal\views\Plugin\views\query\SqliteDateSql::getDateField()
- 11.x core/modules/views/src/Plugin/views/query/SqliteDateSql.php \Drupal\views\Plugin\views\query\SqliteDateSql::getDateField()
Overrides DateSqlInterface::getDateField
File
-
core/
modules/ views/ src/ Plugin/ views/ query/ SqliteDateSql.php, line 73
Class
- SqliteDateSql
- SQLite-specific date handling.
Namespace
Drupal\views\Plugin\views\queryCode
public function getDateField($field, $string_date) {
if ($string_date) {
$field = "strftime('%s', {$field})";
}
return $field;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.