<?php $now = new DateTime(); $punchIn = new DateTime(); // 10:55 am $punchIn->setTime(10,00); if ((int)$now->diff($punchIn)->format('%i') < 30) { print_r( 'punchIn'); }
You have javascript disabled. You will not be able to edit any code.