interface 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.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Datetime!DateFormatterInterface.php/interface/DateFormatterInterface/8.1.x