我得到了Sat 1 Dec 2 pm - 12pm
我应该得到的结果,Sat 1 Dec, 2pm - 2:45pm
我不确定为什么我没有得到正确的时间。
$startO = $openHome['Start'];
$finishO = $openHome['End'];
$startConvert = preg_replace('~\D~', '', $startO);
$start = date('D j M g a',$startConvert / 1000);
$finishConvert = preg_replace('~\D~', '', $finishO);
$finish = date('ga',$finishO / 1000);
$openHomeDetail = $start." - ". $finish;
$startO & $finishO:
"Start":"\/Date(1354323600000)\/","End":"\/Date(1354326300000)\/"