# 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.

### **Examples**

* *Example 1*

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

* *Example 2*

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

{% hint style="info" %}
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.
{% endhint %}
