Functions to format numbers, strings, dates, etc.

File

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

Functions

Namesort descending Location Description
format_date core/includes/common.inc Formats a date, using a date type or a custom date format string.
format_interval core/includes/common.inc Formats a time interval with the requested granularity.
format_plural core/includes/common.inc Formats a string containing a count of items.
format_rss_channel core/includes/common.inc Formats an RSS channel.
format_rss_item core/includes/common.inc Formats a single RSS item.
format_size core/includes/common.inc Generates a string representation for the given byte count.
format_xml_elements core/includes/common.inc Recursively formats nested XML array elements as a string.
parse_size core/includes/common.inc Parses a given byte count.
_format_date_callback core/includes/common.inc Translates a formatted date string.