Allow user specified granularity in relative time ranges

No, that gives an error. That's why first I am rounding to start of week, and then using truncate to get rid of hours, minutes etc.