You are here: Core Reference > Coding > Logic > EXTRACT_DT_HOUR

EXTRACT_DT_HOUR

Function Name

EXTRACT_DT_HOUR

Description

Converts a Date and Time input into an integer output for the hour.

Arguments

Input 1 {DATE_AND_TIME}

For more information on the data types for the inputs and outputs, see Data Type Hierarchy.

Returns

Output {INT}

The output is the hour part of the Date and Time input.

The EXTRACT_DT_HOUR function works in the same way as the EXTRACT_DT_YEAR function except that it returns an integer that is formed from the hour part of the Date and Time input instead of the year part. For ST Programs, a similar syntax is used:

Output := EXTRACT_DT_HOUR (Input 1)


ClearSCADA 2015 R2