[前][次][番号順一覧][スレッド一覧]

ruby-changes:3307

From: ko1@a...
Date: 30 Dec 2007 22:50:31 +0900
Subject: [ruby-changes:3307] tadf - Ruby:r14800 (ruby_1_8): * lib/date.rb (_valid_time?): I'm not sure to recommend such an

tadf	2007-12-30 22:50:21 +0900 (Sun, 30 Dec 2007)

  New Revision: 14800

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/lib/date.rb

  Log:
    * lib/date.rb (_valid_time?): I'm not sure to recommend such an
      expression.  but anyway it is acceptable now.  [ruby-core:14580]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14800&r2=14799
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/lib/date.rb?r1=14800&r2=14799

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 14799)
+++ ruby_1_8/ChangeLog	(revision 14800)
@@ -1,3 +1,8 @@
+Sun Dec 30 22:48:37 2007  Tadayoshi Funaba  <tadf@d...>
+
+	* lib/date.rb (_valid_time?): I'm not sure to recommend such an
+	  expression.  but anyway it is acceptable now.  [ruby-core:14580]
+
 Fri Dec 28 16:36:33 2007  NARUSE, Yui  <naruse@a...>
 
        * lib/resolv.rb (Resolv::DNS#each_address): now returns IPv6 address.
Index: ruby_1_8/lib/date.rb
===================================================================
--- ruby_1_8/lib/date.rb	(revision 14799)
+++ ruby_1_8/lib/date.rb	(revision 14800)
@@ -6,7 +6,7 @@
 # Documentation: William Webber <william@w...>
 #
 #--
-# $Id: date.rb,v 2.33 2007-12-22 14:41:34+09 tadf Exp $
+# $Id: date.rb,v 2.34 2007-12-30 21:45:27+09 tadf Exp $
 #++
 #
 # == Overview
@@ -673,9 +673,9 @@
     h   += 24 if h   < 0
     min += 60 if min < 0
     s   += 60 if s   < 0
-    return unless ((0..23) === h &&
-		   (0..59) === min &&
-		   (0..59) === s) ||
+    return unless ((0...24) === h &&
+		   (0...60) === min &&
+		   (0...60) === s) ||
 		  (24 == h &&
 		    0 == min &&
 		    0 == s)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]