r/ComputerCraft • u/Divisible_by_0 • Nov 10 '25
I need help with the preloaded Time program
So if you place a computer and do absolutely nothing else but turn it on and type in TIME the computer will display the ingame time.
In the program that I am making I am trying to get it to run TIME but it won't work. I have tried SHEL. to run TIME I have tried the OS.TIME/CLOCK commands and various version of OS. and SHELL. but I can't get my program to display any time version of commands, in-game or irl or ticks.
3
Upvotes
3
u/thewrench56 Nov 10 '25
Calling the time API wouldnt show time, it would return it. You need to format and print it.
1
u/fatboychummy Nov 11 '25
If you want it exactly as the output of the
timecommand, you can just doshell.run("time"). Otherwise, you need to grab the time value and output it.