Minus is not defined : relevance error

(imported topic written by Darknight)

Hi All,

i am trying to subtract (now of endpoint) from (current time of TEM server which i have stored in a TEM server registry) as follows :

q:
value

whose
(name

of

it

is

“ServerTime”
)

of
key

“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\BigFix\Brand”

of
registry

as
time

A:
Fri, 27 Jun 2014 05:51:56 -0700

T:
0.139 ms

I am getting below error while performing this action :

q:now -(value whose(name of it is “ServerTime”) ofkey “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\BigFix\Brand” ofregistry)

E:The operator “minus” is not defined.

Can someone please let me know what can be the possible solution for this. My aim is to subtract the current date&time of any endpoint reporting to TEM server from current time of TEM server and then get the difference converted into days.

Please sussgest.

(imported comment written by MattPeterson)

You need to convert the string value to a time value in order to subract.

now

(value

whose
(name

of

it

is

“ServerTime”
)

of

key

“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\BigFix\Brand”

of

registry

as

time)

(imported comment written by Darknight)

Thanks MattPeterson for teh help :slight_smile: