Home » ROR » Time.now.to_s(:db)

Time.now.to_s(:db)

Time.now.strftime(“%Y-%m-%d %H:%M:%S”)

Loading development environment (Rails 2.1.1)

>> Time.now.to_s(:db)
Time.now.to_s(:db)

=> “2008-11-27 14:45:54″

转发到新浪微博 转发到新浪微博

No Responses To This Post So Far(Rss)

Leave a Reply