/** * This function returns a boolean indicating if the date * is in the current minute. * * @returns True if current minute, false otherwise. */ function isCurrentMinute() { if ($this->minutes == YDDate::getCustom("%M") && $this->isToday() && $this->isCurrentHour()) { return true; } return false; }