A simple class for keeping track of and calculating with time.
Adds time. Wraps around 00:00:00 - 23:59:59
Returns:
Subtracts time. Wraps around 00:00:00 - 23:59:59
Returns:
Compare with another RedTime instance.
Returns:
For example [6, 0, 15] //h:m:s
Returns:
Calculates the number of hours using ((h*3600)+(m*60)+s)/60/60
.
Returns:
Calculates the number of minutes using ((h*3600)+(m*60)+s)/60
.
Returns:
Calculates the number of seconds using (h*3600)+(m*60)+s
.
Returns:
Uses Date.localtime
to reset -h, -m, -s.