runt19 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- 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