Cotonti/Cotonti — Issue #830: strptime - is not exists for windows apache
Author: esclkm
Created: 2012-02-11 10:13:55+00:00
State: open

strptime - is not exists for windows apache see - functions.php string 3101

I add in my progect those strings:

if (!function_exists(strptime))
{

function strptime($date, $format)
{
$masks = array(
'%d' => '(?P[0-9]{2})',
'%m' => '(?P[0-9]{2})',
'%Y' => '(?P[0-9]{4})',
'%H' => '(?P[0-9]{2})',
'%M' => '(?P[0-9]{2})',
'%S' => '(?P[0-9]{2})',
// usw..
);

$rexep = "#" . strtr(preg_quote($format), $masks) . "#";
if (!preg_match($rexep, $date, $out))
return false;

$ret = array(
"tm_sec" => (int) $out['S'],
"tm_min" => (int) $out['M'],
"tm_hour" => (int) $out['H'],
"tm_mday" => (int) $out['d'],
"tm_mon" => $out['m'] ? $out['m'] - 1 : 0,
"tm_year" => $out['Y'] > 1900 ? $out['Y'] - 1900 : 0,
);
return $ret;
}

}