生成Unix时间戳的最简单方法是什么?
发布于 2018-01-19 08:22:07
在Linux中,可以使用:
date +%s
发布于 2018-01-19 09:18:24
在Ruby中:
>> Time.now.to_i => 1248933648
https://stackoverflow.com/questions/-100003414
相似问题