ENH: consistency of input args for boundaries in DataFrame.between_time() #40245
- [ ] xref #40245 
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry