modify hsql to parse some extract timestamp field function, and add test...

... case to these functions
This does not really work since it gives the off-by-one answer. And then we have to test around it.
Just to simplify the testing, I would be curious how hard it would be to copy the hsql DAY_OF_WEEK handling code and modify it to make the 0-based WEEKDAY work correctly in HSQL Backend.