标签:blog io for div cti log 时间 on c
function get_intime($intime,$format){
if($intime==""){
return "";
}
$format = isset($format)?$format:‘Y-m-d H:i:s‘;
if(preg_match(‘/\d{10,}/is‘,$intime)){
return date($format,$intime);;
}else{
return date($format,strtotime($intime));;
}
}
function get_intime_strtotime($time){//获取时间戳
return strtotime(get_intime($time));
}
php获取格式时间和时间戳
标签:blog io for div cti log 时间 on c
原文地址:http://www.cnblogs.com/chenzhaojx/p/3938994.html