3 ms·
Was hoping for something more surprising. Dates and times are fertile ground. Rephrased, this problem is that "unit quantity + container quantity yields differ
by quesera 11y ago
Was hoping for something more surprising. Dates and times are fertile ground.
Rephrased, this problem is that "unit quantity + container quantity yields different results when container quantity varies".
On Feb 26th:
> Time.now + 1.month + 5.days => Mar 31st
> Time.now + 5.days + 1.month => Apr 3rd
...
IIRC, #month is a Rails-ism, not part of Ruby.