private boolean isFm(String candidate) {
    return "fm".equals(candidate);
  }
Parse pattern to list of tokens.
common/src/java/org/apache/hadoop/hive/common/format/datetime/HiveSqlDateTimeFormatter.java