How to get current utc time in Lua script? [closed]

为君一笑 提交于 2019-12-08 12:57:53

问题


How can I get current utc time using Lua script and convert it to human readable text.


回答1:


Try os.date("!%c"). Here ! means UTC and %c means full date in standard format. For other options, see http://www.lua.org/manual/5.2/manual.html#pdf-os.date.



来源:https://stackoverflow.com/questions/18982730/how-to-get-current-utc-time-in-lua-script

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!