Lua獲取當前時間

local getTime = os.date(「%c」); 其中的%c可以是以下的一種:(注意大小寫) 如獲取當前年月日時分秒:local date=os.date(「%Y-%m-%d %H:%M:%S」);      os.time() 獲取當前秒   文章轉自https://blog.csdn.net/ningyuanhuo/article/details/43069969
相關文章
相關標籤/搜索