I am trying to get the difference in hours for two different Time instances. I get these values from the DB as a :datetime column
How can I do this so that it inclu
You can use a Rails' method distance_of_time_in_words
distance_of_time_in_words
distance_of_time_in_words(starting_time, ending_time, options = {include_seconds: true })