Functions to format numbers, strings, dates, etc.

Functions

NameLocationDescription
format_datedrupal-6/includes/common.incFormat a date with the given configured format or a custom format string.
format_intervaldrupal-6/includes/common.incFormat a time interval with the requested granularity.
format_pluraldrupal-6/includes/common.incFormat a string containing a count of items.
format_rss_channeldrupal-6/includes/common.incFormats an RSS channel.
format_rss_itemdrupal-6/includes/common.incFormat a single RSS item.
format_sizedrupal-6/includes/common.incGenerate a string representation for the given byte count.
format_xml_elementsdrupal-6/includes/common.incFormat XML elements.
parse_sizedrupal-6/includes/common.incParse a given byte count.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options