Time Conversion Processors

Processors

Time Conversion Processors are installed with the UA Office Link Application and include the following processors.

  • Local Time to UTC

    Converts a timestamp value from local time to UTC.

  • UTC to Local Time

    Converts a timestamp from UTC to local time.

  • UTC to POSIX time

    Converts a timestamp from UTC to a number of seconds elapsed since 1 January 1970. The conversion disregards leap seconds.

  • POSIX time to UTC

    Converts a number of seconds elapsed since 1 January 1970 to UTC. The conversion disregards leap seconds.

  • Date and Time Combiner

    Takes the date portion of the Date input and the time of day portion of the Time input and combines the two to a new date/time value.

  • Date and Time Spliter

    Takes a date/time value and splits it into a two timestamps with the first containing the date portion only and the second containing the time of day portion only.

Add to Task

Add a time conversion processor to a task by dragging it from the “Build” panel onto the task’s “Task Builder” panel.

../../_images/tasks-add-timeconversion-processor.png

Configuration

Select the processor item in the “Task Builder” panel to view its properties.

../../_images/tasks-edit-timeconversion-processor.png

You can change the following properties:

  • Topic
    The title of the time conversion processor as it appears within the task builder.

Press the “Apply” button to commit your changes.

Example

The following example shows a task that transfers data from OPC UA to an ODBC database. Tag values that need to be converted are connected to the processor. The incoming date/time value will be converted to local time before storing the data into the database.

../../_images/processor-time-conversion-example.png