User Tools

Site Tools


script:world_event:getserverdate

getServerDate

  • Parameters and types:
    • enum: numberenumeration value (EVENTDATE)
  • Return value and type:
    • code: numberSuccess (ErrorCode.OK) ErrorCode
    • time: numberthe value obtained
  • The main function of this method: Get server time
  • The specific use cases are as follows:
local code, time = World:getServerDate(enum)
if code == ErrorCode.OK then
print('Execution successful', code, time )
else
print('Execution failed')
end
script/world_event/getserverdate.txt · Last modified: 2024/06/09 09:29 by don