Comparing time using PHP
<p>I want to create an attendance system, in which the attendance based on following condition:</p>

<pre><code>// Conditions
define('LATE_COND', '1306566960'); // strtotime(date('09:16:00'))
define('HALF_COND', '1306576860'); // strtotime(date('09:16:00'))  
define('LATE_CODE', '#FC9E4B');
define('HALF_CODE', '#CCFF33');
define('PRESENT', 'PRESENT');
define('LATE', 'LATE');
define('HALF', 'HALF');

$time_in = strtotime(date('h:i:s'));
if($time_in &lt;= LATE_COND){
$day_status = PRESENT;
$color_code = PRESENT_CODE;
}elseif( ($time_in &gt;= LATE_COND) &amp;&amp; ($attendance &lt; HALF_COND) ){
$day_status = LATE;
$color_code = LATE_CODE;
}elseif($time_in &gt;= HALF_COND){
$day_status = HALF;
$color_code = HALF_CODE;
}
</code></pre>

<p>but for strtotime(date('01:00:00')) value is '1306537200' and hence my all condition failed,
any help and I want to do it using PHP5.x not mysql</p>
