java.js
// Turns a seconds count into an hour variable, a minute variable, and a seconds variable
Turns a seconds count into an hour variable, a minute variable, and a seconds variable
Turns a seconds count into an hour variable a minute variable and a seconds variable
function roundTimeDisplay(timeVariable) {
	if (timeVariable >= 3600) {
		hoursplayed = timeVariable / 3600;
		hoursplayed = Math.floor(hoursplayed);
		hoursplayedremainder = timeVariable % 3600;
	} else {
		hoursplayed = 0;
		hoursplayedremainder = timeVariable;
	}
	if (hoursplayedremainder >= 60) {
		minutesplayed = hoursplayedremainder / 60;
		minutesplayed = Math.floor(minutesplayed);
		minutesplayedremainder = hoursplayedremainder % 60;
	} else {
		minutesplayed = 0;
		minutesplayedremainder = hoursplayedremainder;
	}
}
function roundTimeDisplay ( timeVariable ) { if ( timeVariable >= 3600 ) { hoursplayed = timeVariable / 3600 ; hoursplayed = Math . floor ( hoursplayed ) ; hoursplayedremainder = timeVariable % 3600 ; } else { hoursplayed = 0 ; hoursplayedremainder = timeVariable ; } if ( hoursplayedremainder >= 60 ) { minutesplayed = hoursplayedremainder / 60 ; minutesplayed = Math . floor ( minutesplayed ) ; minutesplayedremainder = hoursplayedremainder % 60 ; } else { minutesplayed = 0 ; minutesplayedremainder = hoursplayedremainder ; } }
Turns a seconds count into an hour variable, a minute variable, and a seconds variable
Turns a seconds count into an hour variable a minute variable and a seconds variable
// Calculating hours // Calculating minutes