module Fetcher module Microdata module Twitter class Service include Singleton def created_at_to_timestamp created_at year = created_at[-4..-1].to_i month = created_at[4..6].downcase day = created_at[8..9].to_i time_fractioned = created_at[10..18].split ":" hour = time_fractioned.shift.to_i minute = time_fractioned.shift.to_i second = time_fractioned.first.to_i Time.gm(year, month, day, hour, minute, second).to_i end end end end end