Results 1 to 2 of 2

Thread: format total in minutes into hours and minutes

  1. #1

    Thread Starter
    Hyperactive Member schuurke28's Avatar
    Join Date
    Feb 2001
    Posts
    402
    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?

  2. #2
    Guest
    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
  •  



Click Here to Expand Forum to Full Width