You are here

protected static property DateTimePlus::$dateParts in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::dateParts
  2. 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::dateParts

An array of possible date parts.

File

core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 58

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

protected static $dateParts = [
  'year',
  'month',
  'day',
  'hour',
  'minute',
  'second',
];