I have a clock time in form of HH.MM.SS (hours, minutes, sec), I need to create a way to convert it to one number so that I can determent which time is bigger. for example 00.00.00 is the smallest 23.59.59 is the biggest
11.03.50 > 11.02.57 etc..
I thought to do the following
hours*10000+minutes*100+sec but im not sure it works for all cases... how can i prove it works?