Skip to main content

timeHasNotExpired

Short summary​

This assertion method checks that the time since the timestamp time has not yet elapsed

Parameters​

NameTypeCommentKind
timestampTIMEstart time you get it with TIME()input
expiringTimeTIMEtimeout like t#300msinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD timeHasNotExpired
VAR_INPUT
(* start time you get it with ``TIME()`` *)
timestamp :TIME;
(* timeout like ``t#300ms`` *)
expiringTime :TIME;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR