You are here

function date_gmdate in Date 5

Same name and namespace in other branches
  1. 5.2 date_php4/date_php4.inc \date_gmdate()
  2. 6.2 date_php4/date_php4.inc \date_gmdate()
  3. 6 date_php4/date_php4.inc \date_gmdate()
18 calls to date_gmdate()
date_format_date in ./date.inc
Format date
date_iso_week_range in ./date.inc
Compute min and max dates for an ISO week
date_last_day_of_month in ./date.inc
Find the last day of a month
date_output_options in ./date.inc
Function to create an option list that will display various date and time formats
date_select_input in ./date.inc
Flexible Date/Time Drop-Down Selector

... See full list

File

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

Code

function date_gmdate($format, $timestamp = FALSE) {
  if ($timestamp === FALSE) {
    return '';
  }
  date_load_library();
  switch (DATE_LIBRARY) {
    case 'ADODB':
      return @adodb_gmdate($format, $timestamp);
    default:
      return @gmdate($format, $timestamp);
  }
}