lib/tabs/resolutions/day.rb in tabs-0.9.0 vs lib/tabs/resolutions/day.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 / 86400 + s / 1.day + end + + def add(ts, num) + ts + num.days end def normalize(ts) Time.utc(ts.year, ts.month, ts.day) end