Like 6677, I know this is an old thread but I've made my own clock for my server spawn and I'm happy to share it with you
m = peripheral.wrap("side")
m.clear()
m.setTextScale(2)
m.setTextColor(colors.red)
function updateClock(m)
while true do
mcT = os.time()
m.setCursorPos(1,5)
m.clearLine()
m.setCursorPos(6,5)
m.write(textutils.formatTime(mcT))
m.setCursorPos(1,2)
m.clearLine()
m.setCursorPos(3,2)
m.write("Jour "..os.day())
sleep(0.1)
end
end
updateClock(m)
Just in case, you need to replace "side" at lign 1 by the side where your monitor is AND you need to have Advanced stuffs (Computer, Monitor)
PS: I use a 3x2 monitor but you can have a smaller one or a bigger one, just check for "text size" at lign 3, "text color" at lign 4 and "text placment" at lign 10 and 14