Formatting

Functions to format numbers, strings, dates, etc.

Functions

NameLocationDescription
format_dateincludes/common.incFormat a date with the given configured format or a custom format string.
format_intervalincludes/common.incFormat a time interval with the requested granularity.
format_nameincludes/common.incFormat a username.
format_pluralincludes/common.incFormat a string containing a count of items.
format_rss_channelincludes/common.incFormats an RSS channel.
format_rss_itemincludes/common.incFormat a single RSS item.
format_sizeincludes/common.incGenerate a string representation for the given byte count.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.