lib/tabs/resolutions/minute.rb in tabs-0.9.0 vs lib/tabs/resolutions/minute.rb in tabs-0.9.1

- old
+ new

@@ -14,10 +14,14 @@ dt = DateTime.strptime(str, PATTERN) self.normalize(dt) end def from_seconds(s) - s / 60.0 + s / 1.minute + end + + def add(ts, num) + ts + num.minutes end def normalize(ts) Time.utc(ts.year, ts.month, ts.day, ts.hour, ts.min) end