I\'m looking for an idiomatic way to get the time passed since a given date in hours, minutes and seconds.
If the given date is 2013-10-25 23:55:00 and the current
There's a method for that:
Time.now.minus_with_coercion(10.seconds.ago)
equals 10 (in fact, 9.99..., use .round if you want a 10).
.round
Source: http://apidock.com/rails/Time/minus_with_coercion
Hope I helped.