public DateFormatterInterface::getSampleDateFormats($langcode = NULL, $timestamp = NULL, $timezone = NULL)
Provides values for all date formatting characters for a given timestamp.
string|null $langcode: (optional) Language code of the date format, if different from the site default language.
int|null $timestamp: (optional) The Unix timestamp to format, defaults to current time.
string|null $timezone: (optional) The timezone to use, if different from the site's default timezone.
array An array of formatted date values, indexed by the date format character.
date()
public function getSampleDateFormats($langcode = NULL, $timestamp = NULL, $timezone = NULL);
© 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/function/DateFormatterInterface::getSampleDateFormats/8.1.x