/** * @return date string in system format */ public function toDate() { return Gpf_Common_DateUtils::getOnlyDatePart($this->toDateTime()); }
private function wasCronStopped($dateFrom) { $correctDate = Gpf_Common_DateUtils::addDateUnitToTimestamp($this->time, -1, Gpf_Common_DateUtils::DAY); if (Gpf_Common_DateUtils::getOnlyDatePart($correctDate) == Gpf_Common_DateUtils::getOnlyDatePart($dateFrom)) { return false; } return true; }