The following SQL statement:
SELECT TD_QUARTER_END(TIMESTAMP'2012-01-15 10:00:00','COMPATIBLE');
returns 2012-03-31 23:59:59.
The following SQL statement:
SELECT TD_QUARTER_END(TIMESTAMP'2012-01-15 10:00:00','COMPATIBLE');
returns 2012-03-31 23:59:59.