Ruby 1.9 complains it can convert Time into Integer.