diff options
author | carsakiller <carsakiller@gmail.com> | 2023-07-28 12:34:21 -0400 |
---|---|---|
committer | carsakiller <carsakiller@gmail.com> | 2023-07-28 12:34:21 -0400 |
commit | 38524fabef24e3a7594c91c63a0db21c51ac98ca (patch) | |
tree | 777a4ca38216aa008d152537f61cd3f336182be0 /meta/template | |
parent | a9adf80432cf686468994fc8e151081d5129d39e (diff) | |
download | lua-language-server-38524fabef24e3a7594c91c63a0db21c51ac98ca.zip |
fix: os.time parameter
Closes #2235
Diffstat (limited to 'meta/template')
-rw-r--r-- | meta/template/os.lua | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/meta/template/os.lua b/meta/template/os.lua index 102a9228..c491ecba 100644 --- a/meta/template/os.lua +++ b/meta/template/os.lua @@ -100,8 +100,28 @@ function os.rename(oldname, newname) end ---@return string localecategory function os.setlocale(locale, category) end +---@class osdateparam +---#DES 'osdate.year' +---@field year integer|string +---#DES 'osdate.month' +---@field month integer|string +---#DES 'osdate.day' +---@field day integer|string +---#DES 'osdate.hour' +---@field hour (integer|string)? +---#DES 'osdate.min' +---@field min (integer|string)? +---#DES 'osdate.sec' +---@field sec (integer|string)? +---#DES 'osdate.wday' +---@field wday integer|string +---#DES 'osdate.yday' +---@field yday integer|string +---#DES 'osdate.isdst' +---@field isdst boolean? + ---#DES 'os.time' ----@param date? osdate +---@param date? osdateparam ---@return integer ---@nodiscard function os.time(date) end |