assertFunction("date_trunc('month', " + TIMESTAMP_LITERAL + ")", toTimestamp(result));
result = result.withMonthOfYear(7);
assertFunction("date_trunc('quarter', " + TIMESTAMP_LITERAL + ")", toTimestamp(result));
result = result.withMonthOfYear(1);
assertFunction("date_trunc('year', " + TIMESTAMP_LITERAL + ")", toTimestamp(result));
result = WEIRD_TIMESTAMP;
result = result.withMillisOfSecond(0);
assertFunction("date_trunc('second', " + WEIRD_TIMESTAMP_LITERAL + ")", toTimestampWithTimeZone(result));