用到字串解析也就太辛苦了,Ruby 的Time class提供一個strptime方法,可以直接定義time format, require 'time' 之後就可以使用了直接舉個例子:
確定! 回上一頁