-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os.time and os.date API incorrectly implemented #116
Comments
Yes, the functions don't do what they are supposed to do. They have have a rather low priority. I will take a look at it but one problem is that I can't find a definition of the format string. It doesn't seem to be in the manual. |
Sorry pushed the wrong button. |
Hello @rvirding. I offer a quote from the Lua 5.2 Reference Manual :) If format is not "*t", then date returns the date as a string,
formatted according to the same rules as the ISO C function strftime. |
I have the same question,Lua can return a normal timestamp, but in Luerl it only returns the current timestamp, Lualocal timestamp = os.time({ day = 15, month = 7, year = 2020, hour = 11, min = 16, sec = 22 })
print("test:" .. timestamp)
-> test:1594782982 luerl local timestamp = os.time({ day = 15, month = 7, year = 2020, hour = 11, min = 16, sec = 22 })
print("test:" .. timestamp)
-> test:1703405864 |
I will have a go and look at this. If someone could return an example of the Lua format string that would help. |
Official lua implementation:
Luerl:
The text was updated successfully, but these errors were encountered: