Formatting

Functions to format numbers, strings, dates, etc.

File

core/includes/common.inc, line 232
Common functions that many Drupal modules will need to reference.

Functions

Name Location Description
date_iso8601 core/includes/common.inc Returns an ISO8601 formatted date based on the given date.
format_date Deprecated core/includes/common.inc Formats a date, using a date type or a custom date format string.
format_size core/includes/common.inc Generates a string representation for the given byte count.

© 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!includes!common.inc/group/format/8.1.x