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