Time difference in hours

前端 未结 7 1916
不知归路
不知归路 2020-12-04 16:27

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

相关标签:
7条回答
  • 2020-12-04 17:03

    You can use a gem called time_diff to get the time difference in very useful formats

    0 讨论(0)
提交回复
热议问题