runt19 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/runt/pdate.rb +2 -2
- data/lib/runt/version.rb +1 -1
- metadata +1 -1
data/lib/runt/pdate.rb
CHANGED
@@ -51,7 +51,7 @@ module Runt
|
|
51
51
|
current_date = self.class.to_date(self)
|
52
52
|
return DPrecision::to_p((current_date>>n),@date_precision)
|
53
53
|
when WEEK then
|
54
|
-
return new_self_plus(n*7)
|
54
|
+
return new_self_plus(n*7)
|
55
55
|
when DAY then
|
56
56
|
return new_self_plus(n)
|
57
57
|
when HOUR then
|
@@ -90,7 +90,7 @@ module Runt
|
|
90
90
|
if(block_given?)
|
91
91
|
n=yield(n)
|
92
92
|
end
|
93
|
-
return DPrecision::to_p(
|
93
|
+
return DPrecision::to_p(Time.at(to_time.to_i + (n.to_f * 86400)),date_precision)
|
94
94
|
end
|
95
95
|
|
96
96
|
def PDate.to_date(pdate)
|
data/lib/runt/version.rb
CHANGED