src/Carbon/Traits/Date.php
public function setTimeFrom($date = null)
    {
        $date = $this->resolveCarbon($date);

        return $this->setTime($date->hour, $date->minute, $date->second, $date->microsecond);
    }
public function setTimeFrom($date = null)
    {
        $date = $this->resolveCarbon($date);

        return $this->setTime($date->hour, $date->minute, $date->second, $date->microsecond);
    }
public function setTimeFrom ( $ date = null ) { $ date = $ this -> resolveCarbon ( $ date ) ; return $ this -> setTime ( $ date -> hour , $ date -> minute , $ date -> second , $ date -> microsecond ) ; }
Set the hour, minute, second and microseconds for this instance to that of the passed instance.

@param \Carbon\Carbon|\DateTimeInterface $date now if null

@return static
Set the hour minute second and microseconds for this instance to that of the passed instance .