mode(time, day_info, screen_info){
        // next we step through the different modes and test then
        // one by one.
        for(var i=0; i<this.solar_modes.length; i++){
            if(this.solar_modes[i].test(time,day_info,screen_info) ){
                return this.solar_modes[i];
            }
        }
        // Otherwise we use the default
        //console.log("defaulting");
        return this.default_mode;
    }
// correct mode to the time given.
correct mode to the time given.
correct mode to the time given .
mode(time, day_info, screen_info){
        for(var i=0; i<this.solar_modes.length; i++){
            if(this.solar_modes[i].test(time,day_info,screen_info) ){
                return this.solar_modes[i];
            }
        }
        return this.default_mode;
    }
mode ( time , day_info , screen_info ) { for ( var i = 0 ; i < this . solar_modes . length ; i ++ ) { if ( this . solar_modes [ i ] . test ( time , day_info , screen_info ) ) { return this . solar_modes [ i ] ; } } return this . default_mode ; }
correct mode to the time given.
correct mode to the time given .
// next we step through the different modes and test then // one by one. // Otherwise we use the default //console.log("defaulting");