summaryrefslogtreecommitdiff
path: root/lib/date.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 13:50:21 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 13:50:21 +0000
commitf0d305182fbd95a1b6f191f8ed330e37a70d1209 (patch)
tree0f8fc30ed3923676e35d4122bd8a63bdd6cb2718 /lib/date.rb
parent56c04e54e6bf5e195e828f0e5d921f37688cdc08 (diff)
* lib/date.rb (_valid_time?): I'm not sure to recommend such an
expression. but anyway it is acceptable now. [ruby-core:14580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/date.rb b/lib/date.rb
index b88647b6b4..ce24802371 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -6,7 +6,7 @@
# Documentation: William Webber <william@williamwebber.com>
#
#--
-# $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 @@ class Date
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)