---
title: "Time Span Processor"
slug: "time-span-processor"
updated: 2024-11-26T17:22:36Z
published: 2024-11-26T17:22:36Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.tritondigital.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Time Span Processor

The **Time Span Processor** is used to convert between various duration formats. Its most common use is to convert a cue duration into milliseconds. It uses the .NET custom TimeSpan format strings for the input-format and output-format ([https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-timespan-format-strings](https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-timespan-format-strings)).

| **Param name** | **Mandatory** | **Description** | **Default Value** | **Possible Value** |
| --- | --- | --- | --- | --- |
| key | Yes | Name of the attribute we will be modifying. |  | Not null. |
| input-format | Yes | Time format for the input format. |  | See [Date Time Formats](/user/docs/date-time-formats). |
| output-format | Yes | Time format for the output format. | fff | See [Date Time Formats](/user/docs/date-time-formats). |

**Example XML:**

```xml
<TimeSpanProcessor>
   <TimeSpanItems>
     <TimeSpanItem key="cue_time_duration" input-format="s" output-format="fff" />
   </TimeSpanItems>
</TimeSpanProcessor>
```
