Swat/SwatTimeEntry.php
protected function isEndTimeValid()
    {
        $this->valid_range_end->setYear(self::$date_year);
        $this->valid_range_end->setMonth(self::$date_month);
        $this->valid_range_end->setDay(self::$date_day);
        $this->valid_range_end->setTZById('UTC');

        return SwatDate::compare($this->value, $this->valid_range_end, true) <=
            0;
    }
protected function isEndTimeValid()
    {
        $this->valid_range_end->setYear(self::$date_year);
        $this->valid_range_end->setMonth(self::$date_month);
        $this->valid_range_end->setDay(self::$date_day);
        $this->valid_range_end->setTZById('UTC');

        return SwatDate::compare($this->value, $this->valid_range_end, true) <=
            0;
    }
protected function isEndTimeValid ( ) { $ this -> valid_range_end -> setYear ( self :: $ date_year ) ; $ this -> valid_range_end -> setMonth ( self :: $ date_month ) ; $ this -> valid_range_end -> setDay ( self :: $ date_day ) ; $ this -> valid_range_end -> setTZById ( 'UTC' ) ; return SwatDate :: compare ( $ this -> value , $ this -> valid_range_end , true ) <= 0 ; }
Checks if the entered time is valid with respect to the valid end time

@return boolean true if the entered time is before the valid end time
and false if the entered time is on or after the valid
end time.
Checks if the entered time is valid with respect to the valid end time