Function Block GETTIME

The Function Block GETTIME splits the time and date into its components.

The Function Block is the opposite of MKTIME.

Input DT

Defines a date and time with the format DT#. This is then broken down into its components.

Output YEAR

The calculated year from the input DT.

Output MONTH

The calculated month from the input DT.

Output DAY

The calculated day from the input DT.

Output HOUR

The calculated hour from the input DT.

Output MINUTE

The calculated minute from the input DT.

Output SECOUND

The calculated second from the input DT.

Output MILISEC

The calculated milliseconds from the input DT.