mondrian.util
Class Format.DateFormat
java.lang.Object
mondrian.util.Format.BasicFormat
mondrian.util.Format.FallbackFormat
mondrian.util.Format.DateFormat
- Enclosing class:
- Format
static class Format.DateFormat
- extends Format.FallbackFormat
DateFormat is an element of a Format.CompoundFormat
which has a
value when applied to a Calendar
object. (Values of type Date
are automatically converted into Calendar
s when you call
Format.BasicFormat.format(java.util.Date,StringBuilder)
calls to format
other kinds of values give a runtime error.)
In a typical use of this class, a format string such as "m/d/yy" is
parsed into DateFormat objects for "m", "d", and "yy", and Format.LiteralFormat
objects for "/". A Format.CompoundFormat
object
is created to bind them together.
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locale
Format.FormatLocale locale
twelveHourClock
boolean twelveHourClock
Format.DateFormat
Format.DateFormat(int code,
String s,
Format.FormatLocale locale,
boolean twelveHourClock)
setTwelveHourClock
void setTwelveHourClock(boolean twelveHourClock)
format
void format(Calendar calendar,
StringBuilder buf)
- Overrides:
format
in class Format.FallbackFormat