> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/kalipso5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/time-functions/time-difference.md).

# Time Difference

Kalipso - Form - Expressions - Functions - Functions Descriptions - Time Functions - 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 %}
