Get time difference only from hours and minutes  Problem: I have two times one is $InTime : 12:55:10 and the other is $OutTime : 12:56:10 So I think calculating the time difference should be: $TotalTimeInOffice = $OutTime - $InTime I want in hours so I think this should be the result 00:01, but I am getting wrong result. With this calculation I am get 0 in the result, but why? Here are some examples from database: InTime is: 12:55:10 OutTime is: 12:56:09 Result Is: 0 InTime is: 12:24:45 OutTime is: 00:00:00 Result Is: