os.day

From ComputerCraft
Jump to: navigation, search

os.day
Function
Syntax
os.day()
Returns number day
API OS
Source CC:Tweaked

Returns the current day in world time. It starts counting from 1.

  • ☑Y This function has no known arguments.
ExampleExamplePrint the date
Prints the number of the current day to the term.
Code
print(os.day())
Output
1