else { self::
$_cache->
save( serialize($timestamp),
$idstamp);
} } } if (($timestamp < 0
) and ($gmt !== true
)) { $timestamp -=
$this->_offset;
} date_default_timezone_set($oldzone);
$date =
$this->
getDateParts($timestamp, true
);
$length =
strlen($format);
$output = '';
for ($i = 0;
$i <
$length;
$i++
) { switch($format[$i]) { // day formats
case 'd': // day of month, 2 digits, with leading zero, 01 - 31
$output .= (($date['mday'
] < 10
) ? '0' .
$date['mday'
] :
$date['mday'
]);
break;
case 'D': // day of week, 3 letters, Mon - Sun