Calendar

$value) { $pday = date("l"); $sessionDay = $value['day']; $s = $value['start']; // $s = "15:03"; $p = date("H:i"); $mins = (strtotime($s)-strtotime($p)) / 60; $duration = $value['duration']; $end = date('H:i', strtotime($s) + ($duration * 60)); $now = new Datetime("now"); $begintime = new DateTime($s); $endtime = new DateTime($end); $teacher_info = array_key_exists('teacher_name',$value) ? 'By: '.$value["teacher_name"].'' : 'Teacher not assigned'; ?>
">

= $begintime && $now <= $endtime)) { ?>
No Sessions scheduled
'; } ?>