public static synchronized void registerDateType(PrimitiveCategory primitiveCategory, int level) {
    dateTypeList.add(primitiveCategory);
    dateTypes.put(primitiveCategory, level);
  }
Return the character length of the type
@param typeInfo
@return
serde/src/java/org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils.java