U:RDoc::AnyMethod[iI"<=>:ETI" Date#<=>;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"GCompares the two dates and returns -1, zero, 1 or nil. The other ;TI"Cshould be a date object or a numeric value as an astronomical ;TI"Julian day number.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"8Date.new(2001,2,3) <=> Date.new(2001,2,4) #=> -1 ;TI"7Date.new(2001,2,3) <=> Date.new(2001,2,3) #=> 0 ;TI"7Date.new(2001,2,3) <=> Date.new(2001,2,2) #=> 1 ;TI"9Date.new(2001,2,3) <=> Object.new #=> nil ;TI"7Date.new(2001,2,3) <=> Rational(4903887,2) #=> 0 ;T: @format0o; ; [I"See also Comparable.;T: @fileI"ext/date/date_core.c;T:0@omit_headings_from_table_of_contents_below0I"&d <=> other -> -1, 0, +1 or nil ;T0[I" (p1);T@FI" Date;TcRDoc::NormalClass00