static InstantFormatter ofConfiguration(Configuration conf) {
    ZoneId zoneId = TimestampTZUtil.parseTimeZone(HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_LOCAL_TIME_ZONE));
    Type type = Type.valueOf(HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_DATETIME_FORMATTER).toUpperCase());
    ResolverStyle resolverStyle = ResolverStyle.valueOf(HiveConf.getVar(conf,
        HiveConf.ConfVars.HIVE_DATETIME_RESOLVER_STYLE).toUpperCase());
    return type.newFormatter(zoneId, resolverStyle);
  }
Creates a formatter using the specified configuration.

@param conf the configuration to use, not null
@return the formatter based on the provided configuration, not null.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/InstantFormatter.java