function _strftime($format, $time)
{
if(strpos($format, '%a') !== false)
$format = str_replace('%a', $this->_dayToString(date('w', $time), true), $format);
if(strpos($format, '%A') !== false)
$format = str_replace('%A', $this->_dayToString(date('w', $time)), $format);
if(strpos($format, '%b') !== false)
$format = str_replace('%b', $this->_monthToString(date('n', $time), true), $format);
if(strpos($format, '%B') !== false)
$format = str_replace('%B', $this->_monthToString(date('n', $time)), $format);
$date = strftime($format, $time);
return $date;
}
function _strftime($format, $time)
{
if(strpos($format, '%a') !== false)
$format = str_replace('%a', $this->_dayToString(date('w', $time), true), $format);
if(strpos($format, '%A') !== false)
$format = str_replace('%A', $this->_dayToString(date('w', $time)), $format);
if(strpos($format, '%b') !== false)
$format = str_replace('%b', $this->_monthToString(date('n', $time), true), $format);
if(strpos($format, '%B') !== false)
$format = str_replace('%B', $this->_monthToString(date('n', $time)), $format);
if(PHP_OS == 'WINNT'){
$format = str_replace("%h", "%b", $format);
$format = str_replace("%e", "%#d", $format);
}
$date = strftime($format, $time);
return $date;
}
Time to create page: 0.081 seconds