if($startDateTime > strtotime($startdate2 . " " . $projectAllTimeWork[date('w', $startDateTime)][0].":00:00") && $startDateTime < strtotime($startdate2 . " " . $projectAllTimeWork[date('w', $startDateTime)][1].":00:00")){ $workHours += strftime("%H", strtotime($projectAllTimeWork[date('w', $startDateTime)][1].":00:00")) - strftime("%H",$startDateTime); } Мем Алкоголик-кадр