ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getServerUptime

Function

getServerUptime

ServerServerTrilogy Hub only

Returns the time since the server started, in milliseconds.

Syntax

int getServerUptime()

Returns

Time in ms.

Example

addCommandHandler("uptime", function(player)
    outputChatBox("Serwer dziala: " .. formatDuration(getServerUptime() / 1000), player)
end)

See also