class Date

Provides a service to handler various date related functionality.

Hierarchy

  • class \Drupal\Core\Datetime\Date

Expanded class hierarchy of Date

23 string references to 'Date'
1 service uses Date

File

drupal/core/lib/Drupal/Core/Datetime/Date.php, line 19
Contains \Drupal\Component\Datetime\Date.

Namespace

Drupal\Core\Datetime
View source

Members

Namesort descending Modifiers Type Description Overrides
Date::$configFactory protected property The config factory.
Date::$languageManager protected property Language manager for retrieving the default langcode when none is specified.
Date::$timezones protected property The list of loaded timezones.
Date::format public function Formats a date, using a date type or a custom date format string.
Date::__construct public function Constructs a DateFormats object.