Attention

IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include structures and user defined function blocks.

CONCAT_DATE_TOD

Combines a date and a time-of-day into a date-and-time value.

IEC 61131-3

Section 2.5.1.5.8

Support

Supported

Signatures

#

Input (IN1)

Input (IN2)

Return Type

Support

1

DATE

TIME_OF_DAY

DATE_AND_TIME

Supported

Description

Combines the date portion from IN1 with the time-of-day portion from IN2 to produce a DATE_AND_TIME value. The time-of-day value is converted from milliseconds to seconds before being added to the date.

Note

Sub-second precision from the TIME_OF_DAY input is lost because DATE_AND_TIME is stored in whole seconds.

Example

See Also