conversion of num to time
Posted by DAS on September 21, 2001 2:22 PM
I have datat that comes in following form:
517
4
10121
4848
1045
39
The the last two digits always represent minutes and will never be more than 59. The rest of the number is hours, so 10121 would be 101 hrs 21 mins. 4 would be 4 mins. I need to be able to add two of these pieces of data. If the mins don't add to over 59, no problem. Problem is when I need to add two numbers such as 1045 + 39. Should be 11 hours 24 mins or 1124.
Thanks.
DAS