我需要一些幫助來計算當前分鐘的當前分鐘:秒在足球比賽中出場,讓我們假設一個足球比賽有:PHP - 計算的足球比賽
$schedule='2014-02-13';
$start_time1='03:00 pm';
$end_time1='03:45 pm';
$start_time2='04:00 pm';
$end_time2='04:50 pm';
$start_extra_time1='05:10 pm';
$end_extra_time1='05:30 pm';
$start_extra_time2='05:35 pm';
$end_extra_time2='06:10 pm';
我其實我現在的時間是「05:32 pm」,我如何計算當前比賽的分鐘數:秒或(小時:分鐘:秒)?
我已經嘗試了許多解決方案,比如datediff,strtotime等......但是沒有運氣,因爲這些日期之間有一段關閉時間。
非常感謝您的幫助。
請勿使用字符串來表示日期或時間。使用['datetime'](http://nl3.php.net/datetime)對象。 – Carpetsmoker