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

... case to these functions
Now I see why the names here are confusing. Can you add a comment to explain why this change? Later in future, we could easily know why use this variable without digging into the Hsql again. Thanks.