You are here

function datex_format in Datex 7.2

Same name and namespace in other branches
  1. 7.3 datex.module \datex_format()
  2. 7 datex_api/datex_api.module \datex_format()

Similar to php date, localized version.

3 calls to datex_format()
datex_datex_format_alter in ./datex.module
Implements hook_datex_format_alter().
datex_format_date in datex_api/datex_api.module
php->date() localalized version. With default values for Drupal.
datex_handler_field_date::render in views/datex_handler_field_date.inc
Render the field.

File

datex_api/datex_api.class.inc, line 893
Provides an API to work with dates.

Code

function datex_format($locale, $dt = NULL, $fmt = NULL, $tz = NULL, $intl = NULL) {
  return datex_factory($locale, $dt, $tz, $fmt, $intl)
    ->format();
}