Formatting

  1. drupal
    1. 4.6 includes/common.inc
    2. 4.7 includes/common.inc
    3. 5 includes/common.inc
    4. 6 includes/common.inc
    5. 7 includes/common.inc
    6. 8 core/includes/common.inc

Functions to format numbers, strings, dates, etc.

Functions & methods

NameDescription
date_iso8601Returns an ISO8601 formatted date based on the given date.
format_dateFormats a date, using a date type or a custom date format string.
format_intervalFormats a time interval with the requested granularity.
format_pluralFormats a string containing a count of items.
format_rss_channelFormats an RSS channel.
format_rss_itemFormats a single RSS item.
format_sizeGenerates a string representation for the given byte count.
format_usernameFormat a username.
format_xml_elementsFormats XML elements.
parse_sizeParses a given byte count.
_format_date_callbackTranslates a formatted date string.

File

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

Login or register to post comments