audryhome last edited by
+state.time converts the present time to an absolute 1970 value.
as the documentation says:
- int->int, float->float Unary +
- DateTime->int Converts a date & time value to a number of seconds since the datum. Available in RRF 3.4 and later.
It is either an unary operator or a function.
When I use it in expression if(+state.time - global.last_time) I get an error
"Error: in file macro line 14 column 17: meta command: expected numeric or enumeration value after '+' " which means the it doesn't recognize the + operator function in this context.
Solution is to declare a var then use it at the same place.
Is it a desired behavior or did I miss something?
dc42 administrators last edited by
@audryhome which firmware version are you using? Please try firmware 3.4 if you are not already using it.