-1
我遇到日期差异问题。例如日期差异不正确时间
$nToday = date("Y-m-d h:i:s");
$deliveryDateNoon = $_SESSION['sp_date']." 12:00:00";
$date1 = new DateTime($nToday);
$date3 = new DateTime($deliveryDateNoon);
$diffNoon = $date3->diff($date1);
$hrs = $diffNoon->format('%h');
$ntoday="2014-10-30 10:01:46"
$deliveryDateNoon="10/31/2014 12:00:00"
我得到$hrs
值是... 1
演示是你最大的卖家;) – 2014-10-30 14:27:56
看起来是所有http://stackoverflow.com/q/26680456/走了之后 - *再见*;) Buongiorno公司! – 2014-10-31 18:02:30