Contents
Display Legacy Contents

 Print
    Time Difference      
This Function returns a <string>, which is the time between the specified Time 1 and Time 2.

Parameters

Time 1 <string>
  Time to subtract the Time 2 from. This parameter must be in format HHMMSS.
 
Time 2 <string>
  Time to subtract from Time 1. This parameter must be in format HHMMSS.

     
Example 1
  Example 2
TimeDiff("090101", "100101")

Result = 010000
  TimeDiff("100101", "090101")

Result = 010000

     
  • If Time 1 is later than Time 2, the parameters order is inverted in runtime. Therefore, the result of this function is never preceded with a minus sign.

See also
Samples
Sample 1
Sample 2
 
Updated: 11/3/2014 3:29 PM