os.time

Returns the current real or inagme time. Valid arguments for source are "utc", "local", and "ingame".

ExampleGet the current Time
Print the current ingame time in a human readable format.
Code
<nowiki>
print(textutils.formatTime(os.time()))
  </nowiki>
Output 7:00 AM

os.time
Function
Syntax
os.time(
  • source : string
)

Returns number
API os
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.