Extends DateTimePlus().
This class extends the basic component and adds in Drupal-specific handling, like translation of the format() method.
Static methods in base class can also be used to create DrupalDateTime objects. For example:
DrupalDateTime::createFromArray( array('year' => 2010, 'month' => 9, 'day' => 28) )
Hierarchy
class \Drupal\Component\Datetime\DateTimePlus uses ToStringTraitclass \Drupal\Core\Datetime\DrupalDateTime uses StringTranslationTrait
See also
\Drupal/Comp