Class DateStyle


  • public class DateStyle
    extends Object
    Utility methods for handling PostgreSQL DateStyle parameters
    • Constructor Detail

      • DateStyle

        public DateStyle()
    • Method Detail

      • parse

        public static String[] parse​(String value)
        Parses a DateStyle string into its separate components
        Parameters:
        value - DateStyle to parse
        Returns:
        Parsed DateStyle components
      • getDateFormat

        public static DateTimeFormat getDateFormat​(String[] dateStyle)
        Creates a DateFormat for handling Dates from a parsed DateStyle string
        Parameters:
        dateStyle - Parsed DateStyle
        Returns:
        DateFormat for handling dates in the style specified in dateStyle
      • getTimeFormat

        public static DateTimeFormat getTimeFormat​(String[] dateStyle)
        Creates a DateFormat for handling Times from a parsed DateStyle string
        Parameters:
        dateStyle - Parsed DateStyle
        Returns:
        DateFormat for handling times in the style specified in dateStyle
      • getTimestampFormat

        public static DateTimeFormat getTimestampFormat​(String[] dateStyle)
        Creates a DateFormat for handling Timestamps from a parsed DateStyle string
        Parameters:
        dateStyle - Parsed DateStyle
        Returns:
        DateFormat for handling timestamps in the style specified in dateStyle