@TokOut Someone once said
You don't have to know all the answers, you just need to know where to find them. Try looking in the Codea build in reference, or try a Google search. That’s what I would have to do to answer your question.
I found my answer: When I printed OS.data, it printed a tabled Id.
I have encoded the table to Json, and found my answer
You could have just done this, but it’s good you found it yourself.
function setup() dt=os.date("*t") print(dt.year) print(dt.month) print(dt.day) print(dt.hour) print(dt.min) print(dt.sec) print(dt.yday) print(dt.wday) print(dt.isdst) end
function setup() dt=os.date("*t") for a,b in pairs(dt) do print(a,b) end end
I have done this:
function setup() d = os.date("*t") print(d["day"]) end