Difference between revisions of "Os.day"
From ComputerCraft Wiki
(First raw edit: Vital details missing, I will edit them out when I come home.) |
(Changing int to number) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=os.day | |name=os.day | ||
| − | |returns=The current in-game day. | + | |returns={{type|number}} The current in-game day. |
|api=OS | |api=OS | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| Line 12: | Line 12: | ||
}} | }} | ||
}} | }} | ||
| − | [[Category: | + | [[Category:Lua_Core_Functions]] |
Latest revision as of 14:01, 18 July 2013
| Returns the current in-game day. | |
| Syntax | os.day() |
| Returns | number The current in-game day. |
| Part of | ComputerCraft |
| API | OS |
Examples
| Prints current day. | |
| Code |
local day = os.day() |