我有 :
last_transition_date = Time.now.utc.iso8601()
……
x = Time.now.utc.iso8601() - last_transition_date
但它给出了错误:
“2012-05-28T10:50:13Z”的“未定义方法‘-’:字符串’
解决方案?!
我有 :
last_transition_date = Time.now.utc.iso8601()
……
x = Time.now.utc.iso8601() - last_transition_date
但它给出了错误:
“2012-05-28T10:50:13Z”的“未定义方法‘-’:字符串’
解决方案?!