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

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

        return static::deg($time->sec / $interval * 360);
    }
public static function time ( Time $ time , Time $ interval = null ) { $ secInDay = Time :: days ( 1 ) -> sec ; $ interval = $ interval ? $ interval -> sec : $ secInDay ; return static :: deg ( $ time -> sec / $ interval * 360 ) ; }
Creates a new angle equal to the number of revolutions of a duration of
time within a specified time interval.

@param Time $time
@param Time $interval

@return Angle
Creates a new angle equal to the number of revolutions of a duration of time within a specified time interval .