Date Time Processor

Prev Next

The Date Time Processor is used to convert between various date+time formats. It can be useful for setting the "cue_time_start" or "stw_timestamp" attribute. It uses "UNIX" and "STW" special format specifiers, which indicate a unix timestamp in seconds or in milliseconds respectively, as well as the .NET custom DateTime format strings (https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-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

DateTime format for the input format.

 

See Date Time Formats.

output-format

Yes

DateTime format for the output format.

STW

See Date Time Formats.

Example XML:

<DateTimeProcessor>
   <DateTimeItems>
     <DateTimeItem key="cue_time_start" input-format="MM-dd-yy hh:mm:ss.fff" output-format="STW" />
   </DateTimeItems>
</DateTimeProcessor>