- time: documentation ( source)
- mktime: documentation ( source)
- date_default_timezone_set: documentation ( source)
<?php
date_default_timezone_set('America/New_York');
$current_ts = time();
$rollover_ts = mktime(19,00,0,7,1,2015);
$rollover2_ts = mktime(19,00,0,7,30,2015);
if($current_ts > $rollover_ts) {
echo '$current_ts > $rollover_ts';
}
else {
echo '$current_ts <= $rollover_ts';
}