time format in ruby

> Time.now.strftime('%Y-%m-%d %H:%M:%S')
=> "2017-01-22 13:13:18"
原文地址:https://www.cnblogs.com/iwangzheng/p/6340055.html