Skip to content

Possible bug in LUA os.date() - returning a table not possible #1251

Open
@zeus-web

Description

@zeus-web

I want to use the os.date() function.
According to the LUA documentation, I can do this:
temp = os.date("*t", 906000490)
and should get a table with day, month and so on.

However, trying that in Silverbullet "temp" gets filled with the string "*t" only.

Although this case is not documented in silverbullet LUA doc examples, it IS mentioned in the remarks within the sourcecode (common/space_lua/stdlib/os.ts).

So was this function disabled/removed on purpose or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Luahelp wantedIf you're willing to help, do!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions