@Override
  protected String getFuncName() {
    return "quarter";
  }
GenericUDFQuarter.

Returns the quarter of the year for date, in the range 1 to 4.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFQuarter.java