DateTimePlus::$dateParts

Same name in other branches
  1. 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::dateParts
  2. 8.9.x core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::dateParts
  3. 10 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::dateParts

An array of possible date parts.

Type: string[]

File

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

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.