2017-01-22 rubyで時刻を扱う Ruby 後で見返すようのメモ 時刻を扱う t = Time.now t.year t.month t.day t.hour t.min t.sec t.usec