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