script:world_event:getdatestringfromtime
getDateStringFromTime
- Parameters and types:
- time: numbertimestamp
- Return value and type:
- code: numberSuccess (ErrorCode.OK) ErrorCode
- timestr: stringtime description
- The main function of this method: Convert timestamp to completion time
- The specific use cases are as follows:
local code, timestr = World:getDateStringFromTime(time) if code == ErrorCode.OK then print('Execution successful', code, timestr ) else print('Execution failed') end
script/world_event/getdatestringfromtime.txt · Last modified: 2024/06/09 08:07 by don