diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-09 15:02:10 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-09 15:02:10 +0000 |
commit | 1c960858c567ab0bb0916ccca57e2dcae2c20d3e (patch) | |
tree | d69fe7ca87efc820c47edf810a6f46ff6970cd05 | |
parent | 8b68795090a884e15daf9cb373ad0a83ad6755e1 (diff) | |
download | ruby-1c960858c567ab0bb0916ccca57e2dcae2c20d3e.tar.gz |
reedit previous commit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/date.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/date.rb b/lib/date.rb index 367ee2699c..55d0d0c118 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -1490,7 +1490,7 @@ class DateTime < Date raise ArgumentError, 'invalid date' end if String === of - of = Rational(self.class.zone_to_diff(of) || 0, 86400) + of = Rational(zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1515,7 +1515,7 @@ class DateTime < Date raise ArgumentError, 'invalid date' end if String === of - of = Rational(self.class.zone_to_diff(of) || 0, 86400) + of = Rational(zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1540,7 +1540,7 @@ class DateTime < Date raise ArgumentError, 'invalid date' end if String === of - of = Rational(self.class.zone_to_diff(of) || 0, 86400) + of = Rational(zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1568,7 +1568,7 @@ class DateTime < Date raise ArgumentError, 'invalid date' end if String === of - of = Rational(self.class.zone_to_diff(of) || 0, 86400) + of = Rational(zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1579,7 +1579,7 @@ class DateTime < Date raise ArgumentError, 'invalid date' end if String === of - of = Rational(self.class.zone_to_diff(of) || 0, 86400) + of = Rational(zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end |