public function toTime(Time $interval = null)
    {
        $secInDay = Time::days(1)->sec;
        $interval = $interval ? $interval->sec : $secInDay;

        return Time::sec(($this->deg / 360) * $interval);
    }
public function toTime(Time $interval = null)
    {
        $secInDay = Time::days(1)->sec;
        $interval = $interval ? $interval->sec : $secInDay;

        return Time::sec(($this->deg / 360) * $interval);
    }
public function toTime ( Time $ interval = null ) { $ secInDay = Time :: days ( 1 ) -> sec ; $ interval = $ interval ? $ interval -> sec : $ secInDay ; return Time :: sec ( ( $ this -> deg / 360 ) * $ interval ) ; }
Converts this instance to a proportion of time passed within a specified
time interval where 360 degrees is equal to the interval.

@param Time $interval

@return Time
Converts this instance to a proportion of time passed within a specified time interval where 360 degrees is equal to the interval .