Class DateStyle


  • public class DateStyle
    extends java.lang.Object
    Utility methods for handling PostgreSQL DateStyle parameters
    • Constructor Summary

      Constructors 
      Constructor Description
      DateStyle()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DateTimeFormat getDateFormat​(java.lang.String[] dateStyle)
      Creates a DateFormat for handling Dates from a parsed DateStyle string
      static DateTimeFormat getTimeFormat​(java.lang.String[] dateStyle)
      Creates a DateFormat for handling Times from a parsed DateStyle string
      static DateTimeFormat getTimestampFormat​(java.lang.String[] dateStyle)
      Creates a DateFormat for handling Timestamps from a parsed DateStyle string
      static java.lang.String[] parse​(java.lang.String value)
      Parses a DateStyle string into its separate components
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateStyle

        public DateStyle()
    • Method Detail

      • parse

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

        public static DateTimeFormat getDateFormat​(java.lang.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​(java.lang.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​(java.lang.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