This should also support Ruby `Time` objects.