Difference between revisions of "Os.day"

From ComputerCraft Wiki
Jump to: navigation, search
m (Added integer tag)
(Changing int to number)
 
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=os.day
 
|name=os.day
|returns=[[int (type)|int]] The current in-game day.
+
|returns={{type|number}} The current in-game day.
 
|api=OS
 
|api=OS
 
|addon=ComputerCraft
 
|addon=ComputerCraft

Latest revision as of 14:01, 18 July 2013


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)