3 ms·
I just did this in Ruby and got a syntax error: Time.now -1.day Of course, what it should have been was: Time.now - 1.day
by lucraft 18y ago
I just did this in Ruby and got a syntax error:
Time.now -1.day
Of course, what it should have been was:
Time.now - 1.day
- sc 18y agoYou mean Rails. This works as expected, though: Time.now-1.day