Class DatePatternConverter

    • Method Detail

      • newInstance

        public static DatePatternConverter newInstance​(String[] options)
        Obtains an instance of pattern converter.
        Parameters:
        options - options, may be null.
        Returns:
        instance of pattern converter.
      • format

        @Deprecated
        public void format​(Date date,
                           StringBuilder buffer)
        Deprecated.
        Starting with version 2.25.0, this method is deprecated and planned to be removed in the next major release.
        Formats the given date to the provided buffer.
        Parameters:
        date - a date
        buffer - a buffer to append to
      • format

        @Deprecated
        public void format​(long epochMillis,
                           StringBuilder buffer)
        Deprecated.
        Starting with version 2.25.0, this method is deprecated and planned to be removed in the next major release.
        Formats the given epoch milliseconds to the provided buffer.
        Parameters:
        epochMillis - epoch milliseconds
        buffer - a buffer to append to
      • format

        @Deprecated
        public void format​(Instant instant,
                           StringBuilder buffer)
        Deprecated.
        Starting with version 2.25.0, this method is deprecated and planned to be removed in the next major release.
        Formats the given instant to the provided buffer.
        Parameters:
        instant - an instant
        buffer - a buffer to append to
      • getPattern

        public String getPattern()
        Returns:
        the pattern string describing this date format or null if the format does not have a pattern.
      • getTimeZone

        public TimeZone getTimeZone()
        Returns:
        the time zone used by this date format