UtcTimeIsNull

Diese Funktion liefert „TRUE“ wenn alle Komponenten des strukturierten Typs T_UtcTime „0“ sind.

Namensraum: Tc3_Collections
Bibliothek: Tc3_Collections (Tc3_Collections.compiled-library)

Syntax

FUNCTION UtcTimeIsNull : BOOL
VAR_INPUT
    in : T_UtcTime;
END_VAR

UtcTimeIsNull 1: Eingänge

Name

Typ

Beschreibung

in

T_UtcTime

UTC-Time-Wert der überprüft werden soll.

UtcTimeIsNull 2: Rückgabewert

Name

Typ

Beschreibung

UtcTimeIsNull

BOOL

TRUE wenn alle Komponente von UTC-Time „0“ sind.

Beispiel

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);