textutils.formatTime
From ComputerCraft Wiki
Function textutils.formatTime | |
Formats a time that is in float format. | |
Syntax | textutils.formatTime(number time, boolean isTwentyFourHour) |
Returns | string formatted time |
Part of | ComputerCraft |
API | textutils |
Examples
Example | |
Prints the Minecraft world time in 24-hour time. | |
Code |
print(textutils.formatTime(os.time(), true)) |
Output | Depends on the time of day in your world, it will look something like this: "17:30". |