public class LocaleDateTimeFormat extends java.lang.Object implements IFormat
DateTimeFormat,
NumericFormat,
LocaleNumericFormat,
LogicalFormat,
IFormat| Modifier and Type | Field | Description |
|---|---|---|
static int |
DATE |
|
static int |
DATETIME |
|
static int |
TIME |
LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
format(java.lang.Object obj) |
Define quadbase.util.IFormat.
|
static LocaleDateTimeFormat |
getDateInstance() |
Create an instance of date format for the default locale and style.
|
static LocaleDateTimeFormat |
getDateInstance(int style) |
Create an instance of date format for the default locale and the specified style.
|
static LocaleDateTimeFormat |
getDateInstance(int style,
java.util.Locale locale) |
Create an instance of date format for the specified locale and style.
|
static LocaleDateTimeFormat |
getDateInstance(java.util.Locale locale) |
Create an instance of date format for the specified locale.
|
int |
getDateStyle() |
Get the date style.
|
static LocaleDateTimeFormat |
getDateTimeInstance() |
Create an instance of timestamp format for the default locale and styles.
|
static LocaleDateTimeFormat |
getDateTimeInstance(int dateStyle,
int timeStyle) |
Create an instance of timestamp format for the specified styles.
|
static LocaleDateTimeFormat |
getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.Locale locale) |
Create an instance of timestamp format for the specified styles and locale.
|
static LocaleDateTimeFormat |
getDateTimeInstance(java.util.Locale locale) |
Create an instance of timestamp format for the specified locale.
|
int |
getFormatType() |
Define quadbase.util.IFormat.
|
int |
getInstanceType() |
Get the type of instance.
|
static LocaleDateTimeFormat |
getTimeInstance() |
Create an instance of time format for the default locale and style.
|
static LocaleDateTimeFormat |
getTimeInstance(int style) |
Create an instance of time format for the specifed locale.
|
static LocaleDateTimeFormat |
getTimeInstance(int style,
java.util.Locale locale) |
Create an instance of time format for the specifed locale and style.
|
static LocaleDateTimeFormat |
getTimeInstance(java.util.Locale locale) |
Create an instance of time format for the specifed locale.
|
int |
getTimeStyle() |
Get the time style.
|
java.util.TimeZone |
getTimeZone() |
Gets the time zone
|
void |
setLocale(java.util.Locale locale) |
Sets the format locale
|
void |
setTimeZone(java.util.TimeZone zone) |
Sets the time zone
|
public static int DATE
public static int TIME
public static int DATETIME
public void setLocale(java.util.Locale locale)
locale - The locale to become this format locale.public void setTimeZone(java.util.TimeZone zone)
zone - the given new time zonepublic java.util.TimeZone getTimeZone()
public int getFormatType()
getFormatType in interface IFormatpublic java.lang.String format(java.lang.Object obj)
public static LocaleDateTimeFormat getDateInstance()
public static LocaleDateTimeFormat getDateInstance(int style)
style - The specifed stylefor all available stylespublic static LocaleDateTimeFormat getDateInstance(java.util.Locale locale)
locale - The specifed localepublic static LocaleDateTimeFormat getDateInstance(int style, java.util.Locale locale)
style - The specifed stylelocale - The specifed localefor all available stylespublic static LocaleDateTimeFormat getDateTimeInstance()
public static LocaleDateTimeFormat getDateTimeInstance(java.util.Locale locale)
locale - The specifed localepublic static LocaleDateTimeFormat getDateTimeInstance(int dateStyle, int timeStyle)
dateStyle - The specifed date styletimeStyle - The specified time stylefor all available stylespublic static LocaleDateTimeFormat getDateTimeInstance(int dateStyle, int timeStyle, java.util.Locale locale)
dateStyle - The specifed date styletimeStyle - The specified time stylelocale - The specifed localefor all available stylespublic static LocaleDateTimeFormat getTimeInstance()
public static LocaleDateTimeFormat getTimeInstance(int style)
style - The specifed stylefor all available stylespublic static LocaleDateTimeFormat getTimeInstance(java.util.Locale locale)
locale - The specifed localefor all available stylespublic static LocaleDateTimeFormat getTimeInstance(int style, java.util.Locale locale)
style - The specifed stylelocale - The specifed localefor all available stylespublic int getInstanceType()
public int getDateStyle()
for all available stylespublic int getTimeStyle()
for all available styles