Time Conversion Processors¶
Time Conversion Processors are installed with the Dataristix 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 Splitter
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.
Local Time to ISO String
Converts a timestamp value in local time to an ISO 8601 date and time string.
UTC to ISO String
Converts a timestamp value in UTC to an ISO 8601 date and time string.
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.
Select the processor item in the “Task Builder” panel to view its properties.
You can change the following properties:
- The title of the time conversion processor as it appears within the task builder.
Press the “Apply” button to commit your changes.
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.