Community Documentation

Formatting

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

Functions to format numbers, strings, dates, etc.

Functions & methods

NameDescription
format_dateFormat a date with the given configured format or a custom format string.
format_intervalFormat a time interval with the requested granularity.
format_pluralFormat a string containing a count of items.
format_rss_channelFormats an RSS channel.
format_rss_itemFormat a single RSS item.
format_sizeGenerate a string representation for the given byte count.
format_xml_elementsFormat XML elements.
parse_sizeParse a given byte count.

File

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

Login or register to post comments