Allow empty dates() expression.
Added tests for seconds, minutes, and hours.