(11C) Time Duration - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Software Libraries ( /forum-10.html)+--- Forum: General Software Library ( /forum-13.html)+--- Thread: (11C) Time Duration ( /thread-19918.html) |

(11C) Time Duration - Gamo - 05-07-2023 01:15 PM
HP-11C or 15C program to calculate the number of Hours and Minutes in between two times period. Procedure: Input your time in decimal format for example: 11:25 input as 11.25 9:05 input as 9.05 LBL A for the Starting Time LBL B for the Ending Time LBL C for Times Period with the same AM to AM or PM to PM time. LBL D for Times Period beyond Noon or Midnight. Example Usage: [USER] Fix 2 Calculate the hours from 12:15 PM to 4:56 PM This problem is in the same times period PM to PM so use LBL C 12.15 [A] 4.56 [B] [C] display 4.41 answer: 4 hours 41 minutes Calculate the hours from 7:45 AM to 6:05 PM This problem shift from AM to PM so use LBL D 7.45 [A] 6.05 [B] [D] display 10.20 answer: 10 hours 20 minutes ------------------------------------------------------------------------ Program: Quote:LBL A Gamo 5/2023 |