
1 leiz 2013-11-22 09:45:14 +08:00 ruby原生没,rails有 (e-s).hours |
2 leiz 2013-11-22 09:46:50 +08:00 我搞错,.hours是转换当前hour为seconds |
3 pinkman OP @leiz 我发现貌似直接除以3600就可以了,在rails里面要除以两个3600才行,不知道为何(.hours/3600/3600) |
4 lichao 2013-11-22 09:50:59 +08:00 楼主数学不及格 |