Formatting
Functions to format numbers, strings, dates, etc.
Functions
| Name | Location | Description |
|---|---|---|
| date_iso8601 | includes/common.inc | Returns an ISO8601 formatted date based on the given date. |
| format_date | includes/common.inc | Format a date with the given configured format or a custom format string. |
| format_interval | includes/common.inc | Format a time interval with the requested granularity. |
| format_plural | includes/common.inc | Format a string containing a count of items. |
| format_rss_channel | includes/common.inc | Formats an RSS channel. |
| format_rss_item | includes/common.inc | Format a single RSS item. |
| format_size | includes/common.inc | Generate a string representation for the given byte count. |
| format_username | includes/common.inc | Format a username. |
| format_xml_elements | includes/common.inc | Format XML elements. |
| parse_size | includes/common.inc | Parse a given byte count. |
| _format_date_callback | includes/common.inc | Callback function for preg_replace_callback(). |
