首页 > 代码库 > time format in ruby

time format in ruby

 

 

> Time.now.strftime(%Y-%m-%d %H:%M:%S)
=> "2017-01-22 13:13:18"

 

time format in ruby