# File lib/familia/core_ext.rb, line 33 def in_seconds # "60m" => ["60", "m"] q,u = self.scan(/([\d\.]+)([s,m,h])?/).flatten q &&= q.to_f and u ||= 's' q &&= q.in_seconds(u) end