Skip to content

Meta: make osdate accept strings #1328

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions meta/template/os.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ function os.clock() end

---@class osdate
---#DES 'osdate.year'
---@field year integer
---@field year integer|string
---#DES 'osdate.month'
---@field month integer
---@field month integer|string
---#DES 'osdate.day'
---@field day integer
---@field day integer|string
---#DES 'osdate.hour'
---@field hour integer
---@field hour integer|string
---#DES 'osdate.min'
---@field min integer
---@field min integer|string
---#DES 'osdate.sec'
---@field sec integer
---@field sec integer|string
---#DES 'osdate.wday'
---@field wday integer
---@field wday integer|string
---#DES 'osdate.yday'
---@field yday integer
---@field yday integer|string
---#DES 'osdate.isdst'
---@field isdst boolean

Expand Down