Military Time Surprize
Military time, based on 24 hours
can be converted to "ordinary" time
by the following code:
// Does military time
// Do a few more tests
int hour, mins, milTime;
milTime = 1234;
milTime = 0600; //try it!
hour = milTime / 100;
mins = milTime % 100;
System.out.print ("Time is ");
System.out.print (mins);
System.out.print (" minutes after ");
System.out.println (hour);
It converts 1234 into "34 minutes after 12", BUT
it converts 0600 into "84 minutes after 3"
The reason is given in the following
Time problem