You are here

function date_date in Date 5

Same name and namespace in other branches
  1. 5.2 date_php4/date_php4.inc \date_date()
  2. 6.2 date_php4/date_php4.inc \date_date()
  3. 6 date_php4/date_php4.inc \date_date()
1 call to date_date()
date_range_value in ./date_views.inc
Validate and pad date range argument element

File

./date.inc, line 73
Date/time API functions

Code

function date_date($format, $timestamp = FALSE) {
  if ($timestamp === FALSE) {
    return '';
  }
  date_load_library();
  switch (DATE_LIBRARY) {
    case 'ADODB':
      return @adodb_date($format, $timestamp);
    default:
      return date($format, $timestamp);
  }
}