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.

DT_TO_TOD

Extracts the time-of-day portion from a date-and-time value.

IEC 61131-3

Section 2.5.1.5

Support

Supported

Signatures

#

Input (IN)

Return Type

Support

1

DATE_AND_TIME

TIME_OF_DAY

Supported

Description

Extracts the time-of-day portion from IN, returning a TIME_OF_DAY value in milliseconds since midnight.

The long-form alias DATE_AND_TIME_TO_TIME_OF_DAY is also supported.

Example

See Also