ruby-changes:19918
From: tadf <ko1@a...>
Date: Thu, 9 Jun 2011 20:31:50 +0900 (JST)
Subject: [ruby-changes:19918] tadf:r31965 (ruby_1_8): * lib/date.rb: zone_to_diff in this version is just class method.
tadf 2011-06-09 20:31:43 +0900 (Thu, 09 Jun 2011) New Revision: 31965 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31965 Log: * lib/date.rb: zone_to_diff in this version is just class method. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/lib/date.rb Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 31964) +++ ruby_1_8/ChangeLog (revision 31965) @@ -1,3 +1,7 @@ +Thu Jun 9 20:30:00 2011 Tadayoshi Funaba <tadf@d...> + + * lib/date.rb: zone_to_diff in this version is just class method. + Thu Jun 9 19:43:57 2011 Tadayoshi Funaba <tadf@d...> * lib/date.rb (time_to_day_fraction): accepts flonum without Float#to_r. Index: ruby_1_8/lib/date.rb =================================================================== --- ruby_1_8/lib/date.rb (revision 31964) +++ ruby_1_8/lib/date.rb (revision 31965) @@ -1030,7 +1030,7 @@ end end; end - end + end # <<dummy private :once @@ -1231,7 +1231,7 @@ def new_offset(of=0) if String === of - of = Rational(zone_to_diff(of) || 0, 86400) + of = Rational(self.class.zone_to_diff(of) || 0, 86400) end self.class.new!(@ajd, of, @sg) end @@ -1490,7 +1490,7 @@ raise ArgumentError, 'invalid date' end if String === of - of = Rational(zone_to_diff(of) || 0, 86400) + of = Rational(self.class.zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1515,7 +1515,7 @@ raise ArgumentError, 'invalid date' end if String === of - of = Rational(zone_to_diff(of) || 0, 86400) + of = Rational(self.class.zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1540,7 +1540,7 @@ raise ArgumentError, 'invalid date' end if String === of - of = Rational(zone_to_diff(of) || 0, 86400) + of = Rational(self.class.zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1568,7 +1568,7 @@ raise ArgumentError, 'invalid date' end if String === of - of = Rational(zone_to_diff(of) || 0, 86400) + of = Rational(self.class.zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end @@ -1579,7 +1579,7 @@ raise ArgumentError, 'invalid date' end if String === of - of = Rational(zone_to_diff(of) || 0, 86400) + of = Rational(self.class.zone_to_diff(of) || 0, 86400) end new!(jd_to_ajd(jd, fr, of), of, sg) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/