+ 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

8th Apr 2017, 6:47 PM
Vladimir Petrov
Vladimir Petrov - avatar
10 Antworten
+ 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 ^_^
8th Apr 2017, 7:26 PM
SoraKatadzuma
SoraKatadzuma - avatar
+ 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.
9th Apr 2017, 6:22 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
Here mate, this only works in Linux thou... https://code.sololearn.com/c9mhjGmROK57/?ref=app
9th Apr 2017, 5:02 AM
MrCoder
MrCoder - avatar
+ 6
https://code.sololearn.com/c8bxt86dUS3J/?ref=app doesnt work on code playground, also its python, but it looks good and works very well!
9th Apr 2017, 7:37 AM
Supersebi3
Supersebi3 - avatar
+ 5
go to code playground and search for clocks ­čśë there are several examples, mostly in JavaScript.
8th Apr 2017, 6:50 PM
Mario L.
Mario L. - avatar
+ 5
@Vladimir Petrov It runs soft on Linux try it out :D
9th Apr 2017, 5:49 AM
MrCoder
MrCoder - avatar
+ 5
@Vladimir Petrov My pleasure :D
9th Apr 2017, 5:53 AM
MrCoder
MrCoder - avatar
+ 3
@Mario Thanks :D
8th Apr 2017, 6:52 PM
Vladimir Petrov
Vladimir Petrov - avatar
+ 3
@MrCoder Oh wow that's so much code
9th Apr 2017, 5:45 AM
Vladimir Petrov
Vladimir Petrov - avatar
+ 3
@MrCoder I will try it later, but thank you ^_^
9th Apr 2017, 5:51 AM
Vladimir Petrov
Vladimir Petrov - avatar