public class TemporalConfig extends Object
US_TEMPORAL_CONFIG
instance provides US
specific locale configuration. Databases which have been built for other
locales can utilize custom implementations of TemporalConfig in order to
evaluate expressions correctly.Modifier and Type | Field and Description |
---|---|
static String |
US_DATE_FORMAT |
static TemporalConfig |
US_TEMPORAL_CONFIG
default implementation which is configured for the US locale
|
static String |
US_TIME_FORMAT_12 |
static String |
US_TIME_FORMAT_24 |
Constructor and Description |
---|
TemporalConfig(String dateFormat,
String timeFormat12,
String timeFormat24,
char dateSeparator,
char timeSeparator)
Instantiates a new TemporalConfig with the given configuration.
|
Modifier and Type | Method and Description |
---|---|
String |
getDateFormat() |
char |
getDateSeparator() |
String |
getDateTimeFormat12() |
String |
getDateTimeFormat24() |
String |
getDefaultDateFormat() |
String |
getDefaultDateTimeFormat() |
String |
getDefaultTimeFormat() |
String |
getTimeFormat12() |
String |
getTimeFormat24() |
char |
getTimeSeparator() |
public static final String US_DATE_FORMAT
public static final String US_TIME_FORMAT_12
public static final String US_TIME_FORMAT_24
public static final TemporalConfig US_TEMPORAL_CONFIG
public TemporalConfig(String dateFormat, String timeFormat12, String timeFormat24, char dateSeparator, char timeSeparator)
dateFormat
- the date (no time) formattimeFormat12
- the 12 hour time formattimeFormat24
- the 24 hour time formatdateSeparator
- the primary separator used to separate elements in
the date format. this is used to identify the
components of date/time string.timeSeparator
- the primary separator used to separate elements in
the time format (both 12 hour and 24 hour). this is
used to identify the components of a date/time
string. This value should differ from the
dateSeparator.public String getDateFormat()
public String getTimeFormat12()
public String getTimeFormat24()
public String getDateTimeFormat12()
public String getDateTimeFormat24()
public String getDefaultDateFormat()
public String getDefaultTimeFormat()
public String getDefaultDateTimeFormat()
public char getDateSeparator()
public char getTimeSeparator()
Copyright © 2005–2018. All rights reserved.