public class L10nDateFormat
extends java.text.DateFormat
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PATTERN_DEFAULT |
static java.lang.String |
PATTERN_DEFAULT_NO_DATE |
static java.lang.String |
PATTERN_DEFAULT_NO_TIME |
static java.lang.String |
PATTERN_FULL |
static java.lang.String |
PATTERN_FULL_NO_DATE |
static java.lang.String |
PATTERN_FULL_NO_TIME |
static java.lang.String |
PATTERN_LONG |
static java.lang.String |
PATTERN_LONG_NO_DATE |
static java.lang.String |
PATTERN_LONG_NO_TIME |
static java.lang.String |
PATTERN_MEDIUM |
static java.lang.String |
PATTERN_MEDIUM_NO_DATE |
static java.lang.String |
PATTERN_MEDIUM_NO_TIME |
static java.lang.String |
PATTERN_POSTFIX_NO_TIME |
static java.lang.String |
PATTERN_PREFIX_NO_DATE |
static java.lang.String |
PATTERN_SHORT |
static java.lang.String |
PATTERN_SHORT_NO_DATE |
static java.lang.String |
PATTERN_SHORT_NO_TIME |
AM_PM_FIELD, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, ERA_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MINUTE_FIELD, MONTH_FIELD, SECOND_FIELD, SHORT, TIMEZONE_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
format(java.util.Date d,
java.lang.StringBuffer out,
java.text.FieldPosition fp) |
java.lang.String |
getCookedPattern() |
static L10nDateFormat |
getInstance(java.lang.String _pattern)
Constructor is private, because the superclass SimpleDateFormat will set some properties on constructor
while we still have to extract timezone, locale and other inband information out of the pattern.
|
static L10nDateFormat |
getInstance(java.lang.String _pattern,
java.util.Locale _locale) |
static L10nDateFormat |
getInstance(java.lang.String _pattern,
java.util.Locale _locale,
java.util.TimeZone _timeZone) |
static int |
getKindFromString(java.lang.String kind)
returns internal int type of the given String.
|
java.util.Locale |
getLocale() |
java.lang.String |
getPattern() |
java.util.TimeZone |
getTimeZone() |
java.util.Date |
parse(java.lang.String in,
java.text.ParsePosition pp) |
clone, equals, format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, hashCode, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
public static final java.lang.String PATTERN_DEFAULT
public static final java.lang.String PATTERN_SHORT
public static final java.lang.String PATTERN_MEDIUM
public static final java.lang.String PATTERN_LONG
public static final java.lang.String PATTERN_FULL
public static final java.lang.String PATTERN_PREFIX_NO_DATE
public static final java.lang.String PATTERN_DEFAULT_NO_DATE
public static final java.lang.String PATTERN_SHORT_NO_DATE
public static final java.lang.String PATTERN_MEDIUM_NO_DATE
public static final java.lang.String PATTERN_LONG_NO_DATE
public static final java.lang.String PATTERN_FULL_NO_DATE
public static final java.lang.String PATTERN_POSTFIX_NO_TIME
public static final java.lang.String PATTERN_DEFAULT_NO_TIME
public static final java.lang.String PATTERN_SHORT_NO_TIME
public static final java.lang.String PATTERN_MEDIUM_NO_TIME
public static final java.lang.String PATTERN_LONG_NO_TIME
public static final java.lang.String PATTERN_FULL_NO_TIME
public static L10nDateFormat getInstance(java.lang.String _pattern)
public static L10nDateFormat getInstance(java.lang.String _pattern, java.util.Locale _locale)
public static L10nDateFormat getInstance(java.lang.String _pattern, java.util.Locale _locale, java.util.TimeZone _timeZone)
public static int getKindFromString(java.lang.String kind)
public java.lang.String getPattern()
public java.lang.String getCookedPattern()
public java.util.Locale getLocale()
public java.util.TimeZone getTimeZone()
getTimeZone
in class java.text.DateFormat
public java.util.Date parse(java.lang.String in, java.text.ParsePosition pp)
parse
in class java.text.DateFormat
public java.lang.StringBuffer format(java.util.Date d, java.lang.StringBuffer out, java.text.FieldPosition fp)
format
in class java.text.DateFormat
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.