Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ext/date/date_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -6332,9 +6332,11 @@ minus_dd(VALUE self, VALUE other)
* call-seq:
* d - other -> date or rational
*
* Returns the difference between the two dates if the other is a date
* object. If the other is a numeric value, returns a date object
* pointing +other+ days before self. If the other is a fractional number,
* If the other is a date object, returns a Rational
* whose value is the difference between the two dates in days.
* If the other is a numeric value, returns a date object
* pointing +other+ days before self.
* If the other is a fractional number,
* assumes its precision is at most nanosecond.
*
* Date.new(2001,2,3) - 1 #=> #<Date: 2001-02-02 ...>
Expand Down