`getDay()` returns a value in the range 0 to 6, the same as `Time.now.wday` in Ruby.