Formatting

  1. 7.x drupal-7.x/includes/common.inc format
  2. 6.x drupal-6.x/includes/common.inc format

Functions to format numbers, strings, dates, etc.

File

drupal-6.x/includes/common.inc, line 1093
Common functions that many Drupal modules will need to reference.

Functions

Namesort descending Location Description
format_date drupal-6.x/includes/common.inc Format a date with the given configured format or a custom format string.
format_interval drupal-6.x/includes/common.inc Format a time interval with the requested granularity.
format_plural drupal-6.x/includes/common.inc Format a string containing a count of items.
format_rss_channel drupal-6.x/includes/common.inc Formats an RSS channel.
format_rss_item drupal-6.x/includes/common.inc Format a single RSS item.
format_size drupal-6.x/includes/common.inc Generate a string representation for the given byte count.
format_xml_elements drupal-6.x/includes/common.inc Format XML elements.
parse_size drupal-6.x/includes/common.inc Parse a given byte count.