Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > getTime

 

getTime

Syntax

system.server.getTime

Description

Multiuser Server command; returns the current time from the server. The server responds with a message containing a string representing the time.

For synchronization between movies, it is better to examine the #timeStamp property returned in a message from the server. To get the current server #timeStamp value, just send a message to yourself.

Example

This statement shows a request for the server to send back the current time:

errCode = gMultiuserInstance.sendNetMessage("system.server.getTime", "anySubject")

The server's response looks like this:

[#errorCode: 0, #recipients: ["userName"], #senderID: "system.server.getTime", #subject: "anySubject", #content: "2001/03/25 18:22:27", #timeStamp: 30203034]

See also

sendNetMessage()