Hi All,
a time stamp is a 6-digit word: hh-mm-ss (h: hour, m: minute, s: second). Ex: 20:01:45.
Is it possible to reduce it to a smaller digit format which contains the same unique and incremental information given by the original 6-digit one?
Ex:
20:01:45 --> 136;
20:01:46 --> 137;
20:01:47 --> 138;
...
You may focus on mm:ss part whose range is 00-59:00-59 and together requires 4 digits. Each 00-59 (mm) can pair with a corresponding 00-59 (ss).
The only way I can imagine is a change of base. However, I don't want to use chars other than digits to represent this data. So, if I am thinking to hexadecimal system for example, it can't help. I am not familiar with other bases. Maybe you can help.
Negative numbers may help to half the number of digits but 60/2=30 is still a 2-digit number and all together I get 4 digits again.
Do you know any way to make it?
Thanks
Ricardo
a time stamp is a 6-digit word: hh-mm-ss (h: hour, m: minute, s: second). Ex: 20:01:45.
Is it possible to reduce it to a smaller digit format which contains the same unique and incremental information given by the original 6-digit one?
Ex:
20:01:45 --> 136;
20:01:46 --> 137;
20:01:47 --> 138;
...
You may focus on mm:ss part whose range is 00-59:00-59 and together requires 4 digits. Each 00-59 (mm) can pair with a corresponding 00-59 (ss).
The only way I can imagine is a change of base. However, I don't want to use chars other than digits to represent this data. So, if I am thinking to hexadecimal system for example, it can't help. I am not familiar with other bases. Maybe you can help.
Negative numbers may help to half the number of digits but 60/2=30 is still a 2-digit number and all together I get 4 digits again.
Do you know any way to make it?
Thanks
Ricardo