DateFormatterInterface

Provides an interface defining a date formatter.

Hierarchy

File

core/lib/Drupal/Core/Datetime/DateFormatterInterface.php, line 8

Namespace

Drupal\Core\Datetime

Members

Name Modifiers Type Description
DateFormatterInterface::format public function Formats a date, using a date type or a custom date format string.
DateFormatterInterface::formatDiff public function Formats a time interval between two timestamps.
DateFormatterInterface::formatInterval public function Formats a time interval with the requested granularity.
DateFormatterInterface::formatTimeDiffSince public function Formats the time difference from a timestamp to the current request time.
DateFormatterInterface::formatTimeDiffUntil public function Formats the time difference from the current request time to a timestamp.
DateFormatterInterface::getSampleDateFormats public function Provides values for all date formatting characters for a given timestamp.
doc_Drupal
2016-10-29 09:00:47
Comments
Leave a Comment

Please login to continue.