os.time
Returns the current real or inagme time. Valid arguments for source are "utc"
, "local"
, and "ingame"
.
|
|||
Print the current ingame time in a human readable format. | |||
Code | <nowiki>
print(textutils.formatTime(os.time()))
</nowiki>
|
||
Output | 7:00 AM |
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
os.time Function | |
---|---|
Syntax os.time(
| |
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.