2013-07-25 30 views

回答

6

您可以通過

Time.now.to_formatted_s(:db) 

得到這個你可以從here

Time.now.strftime("%F %T") 

希望找到to_formatted_s不同的格式,這可以幫助你

相關問題