Project

General

Profile

Actions

Bug #222

closed

Issues with Date#<=>

Added by febuiles (Federico Builes) over 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
[ruby-core:17523]

Description

=begin
Current versions of 1.8.6 return nil when doing comparations between Date:Infinity

  ruby -v -rdate -e"puts Date::Infinity.new <=> +Date::Infinity.new"
  ruby 1.8.6 (2008-06-29 patchlevel 255) [i686-darwin9.3.0]
  nil

  ruby-1.8.7 -v -rdate -e"puts Date::Infinity.new <=> +Date::Infinity.new"
  ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-darwin9.3.0]
  0

This might be a change worth backporting from 1.8.7
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0