Code: Select all
a := A_Now
a -= 8, Hours ;Parameter #2 invalid.
MsgBox, % a
a += 8, Hours ;OK
MsgBox, % a
Code: Select all
a := A_Now
b:=8
a -=% b, Hours
MsgBox, % a ;Empty
Could use a += -8, Hours.
Code: Select all
a := A_Now
a -= 8, Hours ;Parameter #2 invalid.
MsgBox, % a
a += 8, Hours ;OK
MsgBox, % a
Code: Select all
a := A_Now
b:=8
a -=% b, Hours
MsgBox, % a ;Empty
EnvSub wrote: TimeUnits
If present, this parameter directs the command to subtract Value from Var as though both of them are date-time stamps in the YYYYMMDDHH24MISS format.