Ruby / Rails:将int转换为时间还是从整数获取时间?


157

我们可以完成这个:

i = Time.now.to_i 

例如当前:

i = 1274335854

我可以让我回到过去吗?

Answers:



By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.