+ 3
A digital clock?
How do you make a digital clock? I'm looking for clocks made whit ruby. But it's ok to show me how to make it whit other languages. :D
10 Respuestas
+ 11
I made one (in JavaScript), but you could do it in Rails though I'm not sure if the Playground supports Rails. However you could look up a tutorial on Ruby UI development. I'm not sure if you want it to show up like a clock. If you don't and you just want it to tell time, there should be a module or class in Ruby for doing that. Just look around and see what you can find ^_^
+ 12
I can make one in C++ by combining Washika's current time display program with clear screen and console sleep functionalities, but it wouldn't be working on SL.
+ 9
Here mate, this only works in Linux thou...
https://code.sololearn.com/c9mhjGmROK57/?ref=app
+ 6
https://code.sololearn.com/c8bxt86dUS3J/?ref=app
doesnt work on code playground, also its python, but it looks good and works very well!
+ 5
go to code playground and search for clocks 😉 there are several examples, mostly in JavaScript.
+ 5
@Vladimir Petrov It runs soft on Linux try it out :D
+ 5
@Vladimir Petrov My pleasure :D
+ 3
@Mario Thanks :D
+ 3
@MrCoder Oh wow that's so much code
+ 3
@MrCoder I will try it later, but thank you ^_^