Richard_Wittich_482

Setting a variable to current time

Discussion created by Richard_Wittich_482 on Mar 13, 2014
Latest reply on Mar 14, 2014 by Mark_Hadler_430

Why does the following code set &CUR_TIME# to the same time, even after a delay of 2 minutes?

Code:

:SET &CUR_TIME# = SYS_TIME(HHMM)
:PRINT "&CUR_TIME#"
:WAIT 120
:SET &CUR_TIME# = SYS_TIME(HHMM)
:PRINT "&CUR_TIME#"

Result

2014-03-13 14:22:46 - U0020408 1422
2014-03-13 14:24:46 - U0020408 1422

Outcomes