public function hourTo(int $hour): Date
    {
        return $this->createDateWithNewTime(
                $hour,
                $this->originalDate->minutes(),
                $this->originalDate->seconds()
        );
    }
public function hourTo(int $hour): Date
    {
        return $this->createDateWithNewTime(
                $hour,
                $this->originalDate->minutes(),
                $this->originalDate->seconds()
        );
    }
public function hourTo ( int $ hour ) : Date { return $ this -> createDateWithNewTime ( $ hour , $ this -> originalDate -> minutes ( ) , $ this -> originalDate -> seconds ( ) ) ; }
returns a new date instance with same date, minute and second but changed hour

@api
@param   int  $hour
@return  \stubbles\date\Date
returns a new date instance with same date minute and second but changed hour