You are here

function date_strftime in Date 5

File

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

Code

function date_strftime($format, $timestamp = FALSE) {
  if (!$timestamp) {
    return '';
  }
  date_load_library();
  switch (DATE_LIBRARY) {
    case 'ADODB':
      return @adodb_strftime($format, $timestamp);
    default:
      return @strftime($format, $timestamp);
  }
}