weatherStation/weatherStation/static/js/mainWeather.js
// to determine if it is currently daytime
to determine if it is currently daytime
to determine if it is currently daytime
function	isDaytime(sunrise, sunset) {
	var current = new Date();
	var currentSec = this.getDaySeconds(current);
	var sunriseSec = this.getDaySeconds(sunrise);
	var sunsetSec = this.getDaySeconds(sunset);
	return currentSec > sunriseSec && currentSec < sunsetSec;
}
function isDaytime ( sunrise , sunset ) { var current = new Date ( ) ; var currentSec = this . getDaySeconds ( current ) ; var sunriseSec = this . getDaySeconds ( sunrise ) ; var sunsetSec = this . getDaySeconds ( sunset ) ; return currentSec > sunriseSec && currentSec < sunsetSec ; }
to determine if it is currently daytime
to determine if it is currently daytime