public void setHour(int h){
		//checks to see if h is less than or equal to one
		//and it checks to see if its less than 24 and if 
		//both requirements are meant than the integer can remain the same
		//value but if it doesn't than we set it to zero.
		hour = ((h >= 0 && h<24) ? h : 0);
	}