Time Services Howto?

Editor
Dec 28, 2010 at 3:00 AM

How do you use the new time service?

Editor
Dec 28, 2010 at 6:41 PM

Think I figured it out...

Adding the poll item for time, then the results are in the timeService var fin the LouAdapter.  However the values are not unix timestamps, but once you divide them by 1000 you can convert them to unix timestamps.

Then you can get reference server time, add your time "es" and get scheduled time.

Coordinator
Jan 12, 2011 at 9:12 PM

well this is the key

{"C":"TIME","D":{"Ref":1285163224100,"Step":1000,"Diff":-710,"o":-8}}

Ref is the server time,

Step is how fast to count. (I think the server can slow the client down.)

Diff is the ref - localtime. This way when you setup attacks the diff gets added and sending an attack at 10am is really 10am your localtime and not true 10am server time.

o is offset or timezone.