DateTimePlus::$dateParts

An array of possible date parts.

Type: dateParts

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',
];

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