script:world_event:getlocaldate
getLocalDate
- 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 is to obtain the host time
- The specific use cases are as follows:
local code, time = World:getLocalDate(enum) if code == ErrorCode.OK then print('Execution successful', code, time ) else print('Execution failed') end
script/world_event/getlocaldate.txt · Last modified: 2024/06/09 09:33 by don