User Tools

Site Tools


script:world_event:getserverdatestring

getServerDateString

  • Parameters and types: None
  • Return value and type:
    • code: numberSuccess (ErrorCode.OK) ErrorCode
    • timestr: stringtime description
  • The main function of this method: Get the complete server time
  • The specific use cases are as follows:
local code, timestr = World:getServerDateString()
if code == ErrorCode.OK then
print('Execution successful', code, timestr )
else
print('Execution failed')
end
script/world_event/getserverdatestring.txt · Last modified: 2024/06/09 09:27 by don