How to get value of Server.time?

Please post any questions about developing your plugin here. Please use the search function before posting!
Jake
Junior Member
Posts: 19
Joined: Sun Oct 04, 2015 7:54 pm

How to get value of Server.time?

Postby Jake » Tue Jun 21, 2016 2:11 am

Syntax: Select all

from engines.server import Server

time = Server.time
print(time)

output:

Code: Select all

<property object at 0x...>


Is there a way I can get the value of Server.time?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: How to get value of Server.time?

Postby L'In20Cible » Tue Jun 21, 2016 2:37 am

Server is the class, not an object.

Syntax: Select all

from engines.server import server

time = server.time
print(time)
Notice the first letter.
Jake
Junior Member
Posts: 19
Joined: Sun Oct 04, 2015 7:54 pm

Re: How to get value of Server.time?

Postby Jake » Tue Jun 21, 2016 2:44 am

L'In20Cible wrote:Server is the class, not an object.

Syntax: Select all

from engines.server import server

time = server.time
print(time)
Notice the first letter.


Ah I see, thanks

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 122 guests