|
-
Mar 6th, 2001, 10:06 AM
#1
Thread Starter
Hyperactive Member
i have to count minutes and convert them to hours and minutes, i.e.
0800
0830
0530
------
2160
2160 must become 22 hours, how do i format this?
-
Mar 7th, 2001, 11:16 AM
#2
you can't really add them like that, coz for instance:
0055
0055
------+
0110 which would be 1 hour and 10 minuten, while in reality it is 1 hour and 50 minutes.
So you have to add hours and minutes seperately, then just take the minutes div 60 and add that to the hours, while minutes mod 60 is the number of minutes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|