building url with time/from/to