Class QuarterDateFormat

    • Field Detail

      • REGULAR_QUARTERS

        public static final String[] REGULAR_QUARTERS
        Symbols for regular quarters.
      • ROMAN_QUARTERS

        public static final String[] ROMAN_QUARTERS
        Symbols for roman numbered quarters.
      • GREEK_QUARTERS

        public static final String[] GREEK_QUARTERS
        Symbols for greek numbered quarters.
        Since:
        1.0.6
    • Constructor Detail

      • QuarterDateFormat

        public QuarterDateFormat()
        Creates a new instance for the default time zone.
      • QuarterDateFormat

        public QuarterDateFormat​(TimeZone zone)
        Creates a new instance for the specified time zone.
        Parameters:
        zone - the time zone (null not permitted).
      • QuarterDateFormat

        public QuarterDateFormat​(TimeZone zone,
                                 String[] quarterSymbols)
        Creates a new instance for the specified time zone.
        Parameters:
        zone - the time zone (null not permitted).
        quarterSymbols - the quarter symbols.
      • QuarterDateFormat

        public QuarterDateFormat​(TimeZone zone,
                                 String[] quarterSymbols,
                                 boolean quarterFirst)
        Creates a new instance for the specified time zone.
        Parameters:
        zone - the time zone (null not permitted).
        quarterSymbols - the quarter symbols.
        quarterFirst - a flag that controls whether the quarter or the year is displayed first.
        Since:
        1.0.6
    • Method Detail

      • format

        public StringBuffer format​(Date date,
                                   StringBuffer toAppendTo,
                                   FieldPosition fieldPosition)
        Formats the given date.
        Specified by:
        format in class DateFormat
        Parameters:
        date - the date.
        toAppendTo - the string buffer.
        fieldPosition - the field position.
        Returns:
        The formatted date.
      • parse

        public Date parse​(String source,
                          ParsePosition pos)
        Parses the given string (not implemented).
        Specified by:
        parse in class DateFormat
        Parameters:
        source - the date string.
        pos - the parse position.
        Returns:
        null, as this method has not been implemented.
      • equals

        public boolean equals​(Object obj)
        Tests this formatter for equality with an arbitrary object.
        Overrides:
        equals in class DateFormat
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.