General

Profile

andreionut (Andrei Balcanasu)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

10/27/2015

09:17 AM Ruby Bug #11621: Date.- and Date.+ methods inconsistencies
Right, that is clear now for me.
Thanks for explaining.
I don't know how to close the bug, so whomever has access, please close
andreionut (Andrei Balcanasu)

10/26/2015

05:41 PM Ruby Bug #11621: Date.- and Date.+ methods inconsistencies
Good point, but this still does not explain why in some cases ` -7` works:
```ruby
now = Date.today
=> #<Date: 2015-10-26 ((2457322j,0s,0n),+0s,2299161j)>
now -7
=> #<Date: 2015-10-19 ((2457315j,0s,0n),+0s,2299161j)>
Date.new(2...
andreionut (Andrei Balcanasu)
03:59 PM Ruby Bug #11621 (Rejected): Date.- and Date.+ methods inconsistencies
I noticed today some inconsistencies when using `-` and `+` methods of the `Date` class, that makes the whitespace relevant:
~~~
irb(main):001:0> require 'date'
=> true
irb(main):002:0> Date.today - 7
=> #<Date: 2015-10-19 ((24573...
andreionut (Andrei Balcanasu)

Also available in: Atom