1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* time.c (time_cmp): Time.<=> no longer supports comparison with

numeric. [ruby-core#15332]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-02-02 08:46:05 +00:00
parent 3940857f2b
commit 887485907e
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Sat Feb 2 17:40:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
* time.c (time_cmp): Time.<=> no longer supports comparison with
numeric. [ruby-core#15332]
Sat Feb 2 09:53:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (darwin): disabled fat-binary support which confuses

5
time.c
View file

@ -1039,11 +1039,8 @@ time_nsec(VALUE time)
/*
* call-seq:
* time <=> other_time => -1, 0, +1
* time <=> numeric => -1, 0, +1
*
* Comparison---Compares <i>time</i> with <i>other_time</i> or with
* <i>numeric</i>, which is the number of seconds (possibly
* fractional) since the Epoch.
* Comparison---Compares <i>time</i> with <i>other_time</i>.
*
* t = Time.now #=> 2007-11-19 08:12:12 -0600
* t2 = t + 2592000 #=> 2007-12-19 08:12:12 -0600