You are here

protected static property DateTimePlus::$dateParts in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::dateParts
  2. 10 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',
];