77,7 → 77,7 |
// http://uk.php.net/manual/en/function.getdate.php |
function gmgetdate($ts = null){ |
$k = array('seconds','minutes','hours','mday','wday','mon','year','yday','weekday','month',0); |
return(array_comb($k,split(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts)))); |
return(array_comb($k,explode(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts)))); |
} |
|
// Added for PHP4 compatibility |
842,7 → 842,7 |
|
// Custom pattern can be POSITIVE;NEGATIVE;ZERO |
// The "text" option as 4th parameter is not handled |
$parts = split(";",$format); |
$parts = explode(";",$format); |
$pattern = $parts[0]; |
// Negative pattern |
if (count($parts)>2 && $num==0) { |