Program that solve two difference times

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 4majusicka4
    New Member
    • Oct 2012
    • 1

    Program that solve two difference times

    hi, i need a help, i need to make a program which solove difference between two interested times in format hh:mm i made it but it doesn´t give me right answers for all times for example it can´t solove times like 23:50 and 0:15 and it says that difference is 23:35 and no 00:25
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    It would help to see the code.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      I notice that 23:35 + 00:25 = 24:00.
      Perhaps you have a wraparound problem or are finding the time between times B and A instead of A and B.

      Comment

      • sgayathri2412
        New Member
        • Oct 2012
        • 8

        #4
        post your coding please.

        Comment

        Working...