title: How to find the difference between two time in ruby?
body: <pre><code>time_difference_in_sec = (DateTime.now - @given_time).to_i.abs
  
  where DateTime.now : #&lt;DateTime: 2015-09-28T19:30:35+05:30 ((2457294j,50435s,957360402n),+19800s,2299161j)&gt;
  @given_time : #&lt;DateTime: 2015-09-28T11:30:09+00:00 ((2457294j,41409s,0n),+0s,2299161j)&gt;
  
  time_difference_in_sec : 0
  </code></pre>
  
  <p>I searched a lot but didn't get the proper answer.</p>