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