public static Datetime::formatExample($format)
Creates an example for a date format.
This is centralized for a consistent method of creating these examples.
string $format:
string
public static function formatExample($format) { if (!static::$dateExample) { static::$dateExample = new DrupalDateTime(); } return static::$dateExample->format($format); }
© 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!Element!Datetime.php/function/Datetime::formatExample/8.1.x