os.day

From ComputerCraft Wiki
Revision as of 14:01, 18 July 2013 by Cranium (Talk | contribs) (Changing int to number)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function os.day
Returns the current in-game day.
Syntax os.day()
Returns number The current in-game day.
Part of ComputerCraft
API OS

Examples

Grid paper.png  Example
Prints current day.
Code
local day = os.day()
print(day)