Provides an interface defining a date formatter.
Hierarchy
- interface \Drupal\Core\Datetime\DateFormatterInterface
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. |
Please login to continue.