- drupal
Functions to format numbers, strings, dates, etc.
Functions & methods
| Name | Description |
|---|---|
| date_iso8601 | Returns an ISO8601 formatted date based on the given date. |
| format_date | Formats a date, using a date type or a custom date format string. |
| format_interval | Formats a time interval with the requested granularity. |
| format_plural | Formats a string containing a count of items. |
| format_rss_channel | Formats an RSS channel. |
| format_rss_item | Formats a single RSS item. |
| format_size | Generates a string representation for the given byte count. |
| format_username | Format a username. |
| format_xml_elements | Formats XML elements. |
| parse_size | Parses a given byte count. |
| _format_date_callback | Translates a formatted date string. |
File
- includes/
common.inc, line 1599 - Common functions that many Drupal modules will need to reference.