You are here

function datex_format in Datex 7

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

Alias of DatexFormater::format().

1 call to datex_format()
datex_form_alter in ./datex.module
Implements hook_form_alter().

File

datex_api/datex_api.module, line 123

Code

function datex_format($date, $format, $tz = NULL, $use_intl = 'check first', &$intl_args = array()) {
  if ($use_intl === 'check first') {
    $use_intl == _datex_intl();
  }
  if (!$tz) {
    $tz = drupal_get_user_timezone();
  }
  return DatexFormatter::format($date, $format, $tz, $use_intl, $intl_args);
}