script:world_event:getlocaldatestring
getLocalDateString
- 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 device time
- The specific use cases are as follows:
local code, timestr = World:getLocalDateString() if code == ErrorCode.OK then print('Execution successful', code, timestr ) else print('Execution failed') end
script/world_event/getlocaldatestring.txt · Last modified: 2024/06/09 09:31 by don