Package com.impossibl.postgres.system
Class DateStyle
- java.lang.Object
-
- com.impossibl.postgres.system.DateStyle
-
public class DateStyle extends 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(String[] dateStyle)
Creates a DateFormat for handling Dates from a parsed DateStyle stringstatic DateTimeFormat
getTimeFormat(String[] dateStyle)
Creates a DateFormat for handling Times from a parsed DateStyle stringstatic DateTimeFormat
getTimestampFormat(String[] dateStyle)
Creates a DateFormat for handling Timestamps from a parsed DateStyle stringstatic String[]
parse(String value)
Parses a DateStyle string into its separate components
-
-
-
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
-
-