Search code examples
javascriptruby-on-rails-3timercountdown

Countdown timer in rails


In my application, I have a deadline in this format : 2011-08-26 16:45:00 UTC. In my controller, I am calculating the difference between this date and the current one. The result looks like this : 64:18:13. I want to create a timer which counts from 64:18:13 until 00:00:00. How can I do it ? Thanks.


Solution

  • See the jQuery Countdown plugin and also this SO question if you face any issues