从Ruby中的DateTime变量获取时间 [英] Get time from DateTime Variable in Ruby
本文介绍了从Ruby中的DateTime变量获取时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用ruby,我从数据库中获取了一个包含当今日期时间的对象.我只想要时间截断日期.我该怎么办?
I am working in ruby, i ahave an object containing today's datetime from database. I only want time truncating the date. How can i get that?
推荐答案
尝试
这篇关于从Ruby中的DateTime变量获取时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文