$start = date('Y-m-d H:i:s', max(strtotime("NOW"), strtotime($this->dtstart)));
$end = date('Y-m-d H:i:s', min(strtotime("NOW + $advance DAYS"), strtotime($this->dtend)));
+ return array($start, $end);
}
function method()
// it starts 24 hours ago.. or when dtstart
list($start, $end) = $this->notifytimesRange($advance);
- print_r('run??');
- print_r($start, $end);exit;
+
if (strtotime($start) > strtotime($end)) {
return array(); // no data..
}
$usedays[] = date("Y-m-d", $ut);
}
}
-
+
//print_r($this);