Class AmPmFormatPattern

java.lang.Object
org.apache.calcite.util.format.postgresql.format.FormatPattern
org.apache.calcite.util.format.postgresql.format.AmPmFormatPattern

public class AmPmFormatPattern extends FormatPattern
The date/time format component for AM/PM (first or second half of day).
  • Constructor Details

    • AmPmFormatPattern

      public AmPmFormatPattern(String pattern)
  • Method Details

    • buildCompiledPattern

      protected CompiledPattern buildCompiledPattern(Set<PatternModifier> modifiers)
      Description copied from class: FormatPattern
      Creates a new instance of the compiled version of this date/time component.
      Specified by:
      buildCompiledPattern in class FormatPattern
      Parameters:
      modifiers - the set of flags that were parsed
      Returns:
      a new instance of the compiled version of this date/time component