APM variable assign examples
Problem this snippet solves: APM variable assign is a powerful tool to manipulate APM variable during policy evaluation supporting tcl code.
On Devcentral answers, there are lots of variable assig...
Updated Jun 06, 2023
Version 2.0Stanislas_Piro2
Cumulonimbus
Joined January 04, 2011
Stanislas_Piro2
Feb 19, 2018Cumulonimbus
This expression is the old one.
this code is optimized :
expr { [clock scan "17:00"] - [mcget {session.user.starttime}] }
and to add date information, you can use this
expr { [clock scan "2018-03-10T17:00"] - [mcget {session.user.starttime}] }