UtcTimeIsNull

This function returns "TRUE" if all components of the structured type T_UtcTime are "0".

Namespace: Tc3_Collections
Library: Tc3_Collections (Tc3_Collections.compiled-library)

Syntax

FUNCTION UtcTimeIsNull : BOOL
VAR_INPUT
    in : T_UtcTime;
END_VAR

UtcTimeIsNull 1: Inputs

Name

Type

Description

in

T_UtcTime

UTC-Time value to be checked.

UtcTimeIsNull 2: Return value

Name

Type

Description

UtcTimeIsNull

BOOL

TRUE if all components of UTC-Time are "0".

Sample

PROGRAM P_UtcTimeIsNull
VAR
    t     : T_UtcTime;
    bNull : BOOL;
END_VAR
t     := SEL( bNull, Null_TimeStamp, String_To_UtcTime('UT#2018-03-21-15:58:03.125000000|000|3') );
bNull := UtcTimeIsNull(t);