public class QuarterDateFormat extends DateFormat implements Cloneable, Serializable
DateFormat.Field
Modifier and Type | Field and Description |
---|---|
static String[] |
GREEK_QUARTERS
Symbols for greek numbered quarters.
|
static String[] |
REGULAR_QUARTERS
Symbols for regular quarters.
|
static String[] |
ROMAN_QUARTERS
Symbols for roman numbered quarters.
|
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
Constructor and Description |
---|
QuarterDateFormat()
Creates a new instance for the default time zone.
|
QuarterDateFormat(TimeZone zone)
Creates a new instance for the specified time zone.
|
QuarterDateFormat(TimeZone zone,
String[] quarterSymbols)
Creates a new instance for the specified time zone.
|
QuarterDateFormat(TimeZone zone,
String[] quarterSymbols,
boolean quarterFirst)
Creates a new instance for the specified time zone.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests this formatter for equality with an arbitrary object.
|
StringBuffer |
format(Date date,
StringBuffer toAppendTo,
FieldPosition fieldPosition)
Formats the given date.
|
Date |
parse(String source,
ParsePosition pos)
Parses the given string (not implemented).
|
clone, format, format, getAvailableLocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, hashCode, isLenient, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
format, formatToCharacterIterator, parseObject
public static final String[] REGULAR_QUARTERS
public static final String[] ROMAN_QUARTERS
public static final String[] GREEK_QUARTERS
public QuarterDateFormat()
public QuarterDateFormat(TimeZone zone)
zone
- the time zone (null
not permitted).public QuarterDateFormat(TimeZone zone, String[] quarterSymbols)
zone
- the time zone (null
not permitted).quarterSymbols
- the quarter symbols.public QuarterDateFormat(TimeZone zone, String[] quarterSymbols, boolean quarterFirst)
zone
- the time zone (null
not permitted).quarterSymbols
- the quarter symbols.quarterFirst
- a flag that controls whether the quarter or the
year is displayed first.public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
format
in class DateFormat
date
- the date.toAppendTo
- the string buffer.fieldPosition
- the field position.public Date parse(String source, ParsePosition pos)
parse
in class DateFormat
source
- the date string.pos
- the parse position.null
, as this method has not been implemented.public boolean equals(Object obj)
equals
in class DateFormat
obj
- the object (null
permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics