How to display count down timer in Ruby

Asked By 10 points N/A Posted on -
qa-featured

I am trying to create a count down timer in Ruby which displays time in the following format
00 : 30: 28,
00 : 30: 27,
00 : 30: 26,
00 : 30: 25… And so on. What is the way to achieve this? If I use Time.now , load the value to a variable and display it, I still cannot achieve the above requirement format of count down. I want to display only the time remaining but not the entire date and time which I am getting now with the use of Time.now feature in a on Rails. Can any beautiful mind help me in correcting what I have misunderstood? Thank you for your time and please reply if I ned to give some details.

SHARE

Related Questions