|
|||||||||
| Home >> All >> org >> joda >> time >> [ format overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.joda.time.format
Class DateTimeFormatterBuilder

java.lang.Objectorg.joda.time.format.DateTimeFormatterBuilder
- public class DateTimeFormatterBuilder
- extends java.lang.Object
Factory that creates complex instances of DateTimeFormatter via method calls.
Datetime formatting is performed by the DateTimeFormatter class. Three classes provide factory methods to create formatters, and this is one. The others are DateTimeFormat and ISODateTimeFormat.
DateTimeFormatterBuilder is used for constructing formatters which are then used to print or parse. The formatters are built by appending specific fields or other formatters to an instanece of this builder.
For example, a formatter that prints month and year, like "January 1970", can be constructed as follows:
DateTimeFormatter monthAndYear = new DateTimeFormatterBuilder()
.appendMonthOfYearText()
.appendLiteral(' ')
.appendYear(4, 4)
.toFormatter();
DateTimeFormatterBuilder itself is mutable and not thread-safe, but the formatters that it builds are thread-safe and immutable.
- Since:
- 1.0
| Nested Class Summary | |
(package private) static class |
DateTimeFormatterBuilder.CharacterLiteral
|
(package private) static class |
DateTimeFormatterBuilder.Composite
|
(package private) static class |
DateTimeFormatterBuilder.Fraction
|
(package private) static class |
DateTimeFormatterBuilder.MatchingParser
|
(package private) static class |
DateTimeFormatterBuilder.NumberFormatter
|
(package private) static class |
DateTimeFormatterBuilder.PaddedNumber
|
(package private) static class |
DateTimeFormatterBuilder.StringLiteral
|
(package private) static class |
DateTimeFormatterBuilder.TextField
|
(package private) static class |
DateTimeFormatterBuilder.TimeZoneName
|
(package private) static class |
DateTimeFormatterBuilder.TimeZoneOffset
|
(package private) static class |
DateTimeFormatterBuilder.TwoDigitYear
|
(package private) static class |
DateTimeFormatterBuilder.UnpaddedNumber
|
| Field Summary | |
private java.util.ArrayList |
iElementPairs
Array of printers and parsers (alternating). |
private java.lang.Object |
iFormatter
Cache of the last returned formatter. |
| Constructor Summary | |
DateTimeFormatterBuilder()
Creates a DateTimeFormatterBuilder. |
|
| Method Summary | |
DateTimeFormatterBuilder |
append(DateTimeFormatter formatter)
Appends another formatter. |
DateTimeFormatterBuilder |
append(DateTimeParser parser)
Appends just a parser. |
DateTimeFormatterBuilder |
append(DateTimePrinter printer)
Appends just a printer. |
DateTimeFormatterBuilder |
append(DateTimePrinter printer,
DateTimeParser parser)
Appends a printer/parser pair. |
DateTimeFormatterBuilder |
append(DateTimePrinter printer,
DateTimeParser[] parsers)
Appends a printer and a set of matching parsers. |
private DateTimeFormatterBuilder |
append0(DateTimePrinter printer,
DateTimeParser parser)
|
private DateTimeFormatterBuilder |
append0(java.lang.Object element)
|
DateTimeFormatterBuilder |
appendCenturyOfEra(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric century of era field. |
DateTimeFormatterBuilder |
appendClockhourOfDay(int minDigits)
Instructs the printer to emit a numeric clockhourOfDay field. |
DateTimeFormatterBuilder |
appendClockhourOfHalfday(int minDigits)
Instructs the printer to emit a numeric clockhourOfHalfday field. |
DateTimeFormatterBuilder |
appendDayOfMonth(int minDigits)
Instructs the printer to emit a numeric dayOfMonth field. |
DateTimeFormatterBuilder |
appendDayOfWeek(int minDigits)
Instructs the printer to emit a numeric dayOfWeek field. |
DateTimeFormatterBuilder |
appendDayOfWeekShortText()
Instructs the printer to emit a short locale-specific dayOfWeek text. |
DateTimeFormatterBuilder |
appendDayOfWeekText()
Instructs the printer to emit a locale-specific dayOfWeek text. |
DateTimeFormatterBuilder |
appendDayOfYear(int minDigits)
Instructs the printer to emit a numeric dayOfYear field. |
DateTimeFormatterBuilder |
appendDecimal(org.joda.time.DateTimeFieldType fieldType,
int minDigits,
int maxDigits)
Instructs the printer to emit a field value as a decimal number, and the parser to expect an unsigned decimal number. |
DateTimeFormatterBuilder |
appendEraText()
Instructs the printer to emit a locale-specific era text (BC/AD), and the parser to expect it. |
DateTimeFormatterBuilder |
appendFraction(org.joda.time.DateTimeFieldType fieldType,
int minDigits,
int maxDigits)
Instructs the printer to emit a remainder of time as a decimal fraction, sans decimal point. |
DateTimeFormatterBuilder |
appendFractionOfDay(int minDigits,
int maxDigits)
|
DateTimeFormatterBuilder |
appendFractionOfHour(int minDigits,
int maxDigits)
|
DateTimeFormatterBuilder |
appendFractionOfMinute(int minDigits,
int maxDigits)
|
DateTimeFormatterBuilder |
appendFractionOfSecond(int minDigits,
int maxDigits)
|
DateTimeFormatterBuilder |
appendHalfdayOfDayText()
Instructs the printer to emit a locale-specific AM/PM text, and the parser to expect it. |
DateTimeFormatterBuilder |
appendHourOfDay(int minDigits)
Instructs the printer to emit a numeric hourOfDay field. |
DateTimeFormatterBuilder |
appendHourOfHalfday(int minDigits)
Instructs the printer to emit a numeric hourOfHalfday field. |
DateTimeFormatterBuilder |
appendLiteral(char c)
Instructs the printer to emit a specific character, and the parser to expect it. |
DateTimeFormatterBuilder |
appendLiteral(java.lang.String text)
Instructs the printer to emit specific text, and the parser to expect it. |
DateTimeFormatterBuilder |
appendMillisOfDay(int minDigits)
Instructs the printer to emit a numeric millisOfDay field. |
DateTimeFormatterBuilder |
appendMillisOfSecond(int minDigits)
Instructs the printer to emit a numeric millisOfSecond field. |
DateTimeFormatterBuilder |
appendMinuteOfDay(int minDigits)
Instructs the printer to emit a numeric minuteOfDay field. |
DateTimeFormatterBuilder |
appendMinuteOfHour(int minDigits)
Instructs the printer to emit a numeric minuteOfHour field. |
DateTimeFormatterBuilder |
appendMonthOfYear(int minDigits)
Instructs the printer to emit a numeric monthOfYear field. |
DateTimeFormatterBuilder |
appendMonthOfYearShortText()
Instructs the printer to emit a locale-specific monthOfYear text. |
DateTimeFormatterBuilder |
appendMonthOfYearText()
Instructs the printer to emit a short locale-specific monthOfYear text. |
DateTimeFormatterBuilder |
appendOptional(DateTimeParser parser)
Appends just a parser element which is optional. |
DateTimeFormatterBuilder |
appendPattern(java.lang.String pattern)
Calls upon DateTimeFormat to parse the pattern and append the results into this builder. |
DateTimeFormatterBuilder |
appendSecondOfDay(int minDigits)
Instructs the printer to emit a numeric secondOfDay field. |
DateTimeFormatterBuilder |
appendSecondOfMinute(int minDigits)
Instructs the printer to emit a numeric secondOfMinute field. |
DateTimeFormatterBuilder |
appendShortText(org.joda.time.DateTimeFieldType fieldType)
Instructs the printer to emit a field value as short text, and the parser to expect text. |
DateTimeFormatterBuilder |
appendSignedDecimal(org.joda.time.DateTimeFieldType fieldType,
int minDigits,
int maxDigits)
Instructs the printer to emit a field value as a decimal number, and the parser to expect a signed decimal number. |
DateTimeFormatterBuilder |
appendText(org.joda.time.DateTimeFieldType fieldType)
Instructs the printer to emit a field value as text, and the parser to expect text. |
DateTimeFormatterBuilder |
appendTimeZoneId()
Instructs the printer to emit the identifier of the time zone. |
DateTimeFormatterBuilder |
appendTimeZoneName()
Instructs the printer to emit a locale-specific time zone name. |
DateTimeFormatterBuilder |
appendTimeZoneOffset(java.lang.String zeroOffsetText,
boolean showSeparators,
int minFields,
int maxFields)
Instructs the printer to emit text and numbers to display time zone offset from UTC. |
DateTimeFormatterBuilder |
appendTimeZoneShortName()
Instructs the printer to emit a short locale-specific time zone name. |
DateTimeFormatterBuilder |
appendTwoDigitWeekyear(int pivot)
Instructs the printer to emit a numeric weekyear field which always prints and parses two digits. |
DateTimeFormatterBuilder |
appendTwoDigitWeekyear(int pivot,
boolean lenientParse)
Instructs the printer to emit a numeric weekyear field which always prints two digits. |
DateTimeFormatterBuilder |
appendTwoDigitYear(int pivot)
Instructs the printer to emit a numeric year field which always prints and parses two digits. |
DateTimeFormatterBuilder |
appendTwoDigitYear(int pivot,
boolean lenientParse)
Instructs the printer to emit a numeric year field which always prints two digits. |
(package private) static void |
appendUnknownString(java.lang.StringBuffer buf,
int len)
|
DateTimeFormatterBuilder |
appendWeekOfWeekyear(int minDigits)
Instructs the printer to emit a numeric weekOfWeekyear field. |
DateTimeFormatterBuilder |
appendWeekyear(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric weekyear field. |
DateTimeFormatterBuilder |
appendYear(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric year field. |
DateTimeFormatterBuilder |
appendYearOfCentury(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric year of century field. |
DateTimeFormatterBuilder |
appendYearOfEra(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric yearOfEra field. |
boolean |
canBuildFormatter()
Returns true if toFormatter can be called without throwing an UnsupportedOperationException. |
boolean |
canBuildParser()
Returns true if toParser can be called without throwing an UnsupportedOperationException. |
boolean |
canBuildPrinter()
Returns true if toPrinter can be called without throwing an UnsupportedOperationException. |
private void |
checkParser(DateTimeParser parser)
Checks if the parser is non null and a provider. |
private void |
checkPrinter(DateTimePrinter printer)
Checks if the printer is non null and a provider. |
void |
clear()
Clears out all the appended elements, allowing this builder to be reused. |
private java.lang.Object |
getFormatter()
|
private boolean |
isFormatter(java.lang.Object f)
|
private boolean |
isParser(java.lang.Object f)
|
private boolean |
isPrinter(java.lang.Object f)
|
(package private) static void |
printUnknownString(java.io.Writer out,
int len)
|
DateTimeFormatter |
toFormatter()
Constructs a DateTimeFormatter using all the appended elements. |
DateTimeParser |
toParser()
Internal method to create a DateTimeParser instance using all the appended elements. |
DateTimePrinter |
toPrinter()
Internal method to create a DateTimePrinter instance using all the appended elements. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
iElementPairs
private java.util.ArrayList iElementPairs
- Array of printers and parsers (alternating).
iFormatter
private java.lang.Object iFormatter
- Cache of the last returned formatter.
| Constructor Detail |
DateTimeFormatterBuilder
public DateTimeFormatterBuilder()
- Creates a DateTimeFormatterBuilder.
| Method Detail |
toFormatter
public DateTimeFormatter toFormatter()
- Constructs a DateTimeFormatter using all the appended elements.
This is the main method used by applications at the end of the build process to create a usable formatter.
Subsequent changes to this builder do not affect the returned formatter.
The returned formatter may not support both printing and parsing. The methods
DateTimeFormatter.isPrinter()55 andDateTimeFormatter.isParser()55 will help you determine the state of the formatter.
toPrinter
public DateTimePrinter toPrinter()
- Internal method to create a DateTimePrinter instance using all the
appended elements.
Most applications will not use this method. If you want a printer in an application, call
toFormatter()55 and just use the printing API.Subsequent changes to this builder do not affect the returned printer.
toParser
public DateTimeParser toParser()
- Internal method to create a DateTimeParser instance using all the
appended elements.
Most applications will not use this method. If you want a parser in an application, call
toFormatter()55 and just use the parsing API.Subsequent changes to this builder do not affect the returned parser.
canBuildFormatter
public boolean canBuildFormatter()
- Returns true if toFormatter can be called without throwing an
UnsupportedOperationException.
canBuildPrinter
public boolean canBuildPrinter()
- Returns true if toPrinter can be called without throwing an
UnsupportedOperationException.
canBuildParser
public boolean canBuildParser()
- Returns true if toParser can be called without throwing an
UnsupportedOperationException.
clear
public void clear()
- Clears out all the appended elements, allowing this builder to be
reused.
append
public DateTimeFormatterBuilder append(DateTimeFormatter formatter)
- Appends another formatter.
append
public DateTimeFormatterBuilder append(DateTimePrinter printer)
- Appends just a printer. With no matching parser, a parser cannot be
built from this DateTimeFormatterBuilder.
append
public DateTimeFormatterBuilder append(DateTimeParser parser)
- Appends just a parser. With no matching printer, a printer cannot be
built from this builder.
append
public DateTimeFormatterBuilder append(DateTimePrinter printer, DateTimeParser parser)
- Appends a printer/parser pair.
append
public DateTimeFormatterBuilder append(DateTimePrinter printer, DateTimeParser[] parsers)
- Appends a printer and a set of matching parsers. When parsing, the first
parser in the list is selected for parsing. If it fails, the next is
chosen, and so on. If none of these parsers succeeds, then the failed
position of the parser that made the greatest progress is returned.
Only the printer is optional. In addtion, it is illegal for any but the last of the parser array elements to be null. If the last element is null, this represents the empty parser. The presence of an empty parser indicates that the entire array of parse formats is optional.
appendOptional
public DateTimeFormatterBuilder appendOptional(DateTimeParser parser)
- Appends just a parser element which is optional. With no matching
printer, a printer cannot be built from this DateTimeFormatterBuilder.
checkParser
private void checkParser(DateTimeParser parser)
- Checks if the parser is non null and a provider.
checkPrinter
private void checkPrinter(DateTimePrinter printer)
- Checks if the printer is non null and a provider.
append0
private DateTimeFormatterBuilder append0(java.lang.Object element)
append0
private DateTimeFormatterBuilder append0(DateTimePrinter printer, DateTimeParser parser)
appendLiteral
public DateTimeFormatterBuilder appendLiteral(char c)
- Instructs the printer to emit a specific character, and the parser to
expect it. The parser is case-insensitive.
appendLiteral
public DateTimeFormatterBuilder appendLiteral(java.lang.String text)
- Instructs the printer to emit specific text, and the parser to expect
it. The parser is case-insensitive.
appendDecimal
public DateTimeFormatterBuilder appendDecimal(org.joda.time.DateTimeFieldType fieldType, int minDigits, int maxDigits)
- Instructs the printer to emit a field value as a decimal number, and the
parser to expect an unsigned decimal number.
appendSignedDecimal
public DateTimeFormatterBuilder appendSignedDecimal(org.joda.time.DateTimeFieldType fieldType, int minDigits, int maxDigits)
- Instructs the printer to emit a field value as a decimal number, and the
parser to expect a signed decimal number.
appendText
public DateTimeFormatterBuilder appendText(org.joda.time.DateTimeFieldType fieldType)
- Instructs the printer to emit a field value as text, and the
parser to expect text.
appendShortText
public DateTimeFormatterBuilder appendShortText(org.joda.time.DateTimeFieldType fieldType)
- Instructs the printer to emit a field value as short text, and the
parser to expect text.
appendFraction
public DateTimeFormatterBuilder appendFraction(org.joda.time.DateTimeFieldType fieldType, int minDigits, int maxDigits)
- Instructs the printer to emit a remainder of time as a decimal fraction,
sans decimal point. For example, if the field is specified as
minuteOfHour and the time is 12:30:45, the value printed is 75. A
decimal point is implied, so the fraction is 0.75, or three-quarters of
a minute.
appendFractionOfSecond
public DateTimeFormatterBuilder appendFractionOfSecond(int minDigits, int maxDigits)
appendFractionOfMinute
public DateTimeFormatterBuilder appendFractionOfMinute(int minDigits, int maxDigits)
appendFractionOfHour
public DateTimeFormatterBuilder appendFractionOfHour(int minDigits, int maxDigits)
appendFractionOfDay
public DateTimeFormatterBuilder appendFractionOfDay(int minDigits, int maxDigits)
appendMillisOfSecond
public DateTimeFormatterBuilder appendMillisOfSecond(int minDigits)
- Instructs the printer to emit a numeric millisOfSecond field.
appendMillisOfDay
public DateTimeFormatterBuilder appendMillisOfDay(int minDigits)
- Instructs the printer to emit a numeric millisOfDay field.
appendSecondOfMinute
public DateTimeFormatterBuilder appendSecondOfMinute(int minDigits)
- Instructs the printer to emit a numeric secondOfMinute field.
appendSecondOfDay
public DateTimeFormatterBuilder appendSecondOfDay(int minDigits)
- Instructs the printer to emit a numeric secondOfDay field.
appendMinuteOfHour
public DateTimeFormatterBuilder appendMinuteOfHour(int minDigits)
- Instructs the printer to emit a numeric minuteOfHour field.
appendMinuteOfDay
public DateTimeFormatterBuilder appendMinuteOfDay(int minDigits)
- Instructs the printer to emit a numeric minuteOfDay field.
appendHourOfDay
public DateTimeFormatterBuilder appendHourOfDay(int minDigits)
- Instructs the printer to emit a numeric hourOfDay field.
appendClockhourOfDay
public DateTimeFormatterBuilder appendClockhourOfDay(int minDigits)
- Instructs the printer to emit a numeric clockhourOfDay field.
appendHourOfHalfday
public DateTimeFormatterBuilder appendHourOfHalfday(int minDigits)
- Instructs the printer to emit a numeric hourOfHalfday field.
appendClockhourOfHalfday
public DateTimeFormatterBuilder appendClockhourOfHalfday(int minDigits)
- Instructs the printer to emit a numeric clockhourOfHalfday field.
appendDayOfWeek
public DateTimeFormatterBuilder appendDayOfWeek(int minDigits)
- Instructs the printer to emit a numeric dayOfWeek field.
appendDayOfMonth
public DateTimeFormatterBuilder appendDayOfMonth(int minDigits)
- Instructs the printer to emit a numeric dayOfMonth field.
appendDayOfYear
public DateTimeFormatterBuilder appendDayOfYear(int minDigits)
- Instructs the printer to emit a numeric dayOfYear field.
appendWeekOfWeekyear
public DateTimeFormatterBuilder appendWeekOfWeekyear(int minDigits)
- Instructs the printer to emit a numeric weekOfWeekyear field.
appendWeekyear
public DateTimeFormatterBuilder appendWeekyear(int minDigits, int maxDigits)
- Instructs the printer to emit a numeric weekyear field.
appendMonthOfYear
public DateTimeFormatterBuilder appendMonthOfYear(int minDigits)
- Instructs the printer to emit a numeric monthOfYear field.
appendYear
public DateTimeFormatterBuilder appendYear(int minDigits, int maxDigits)
- Instructs the printer to emit a numeric year field.
appendTwoDigitYear
public DateTimeFormatterBuilder appendTwoDigitYear(int pivot)
- Instructs the printer to emit a numeric year field which always prints
and parses two digits. A pivot year is used during parsing to determine
the range of supported years as
(pivot - 50) .. (pivot + 49).pivot supported range 00 is 20 is 40 is 60 is 80 is --------------------------------------------------------------- 1950 1900..1999 1900 1920 1940 1960 1980 1975 1925..2024 2000 2020 1940 1960 1980 2000 1950..2049 2000 2020 2040 1960 1980 2025 1975..2074 2000 2020 2040 2060 1980 2050 2000..2099 2000 2020 2040 2060 2080
appendTwoDigitYear
public DateTimeFormatterBuilder appendTwoDigitYear(int pivot, boolean lenientParse)
- Instructs the printer to emit a numeric year field which always prints
two digits. A pivot year is used during parsing to determine the range
of supported years as
(pivot - 50) .. (pivot + 49). If parse is instructed to be lenient and the digit count is not two, it is treated as an absolute year. With lenient parsing, specifying a positive or negative sign before the year also makes it absolute.- Since:
- 1.1
appendTwoDigitWeekyear
public DateTimeFormatterBuilder appendTwoDigitWeekyear(int pivot)
- Instructs the printer to emit a numeric weekyear field which always prints
and parses two digits. A pivot year is used during parsing to determine
the range of supported years as
(pivot - 50) .. (pivot + 49).pivot supported range 00 is 20 is 40 is 60 is 80 is --------------------------------------------------------------- 1950 1900..1999 1900 1920 1940 1960 1980 1975 1925..2024 2000 2020 1940 1960 1980 2000 1950..2049 2000 2020 2040 1960 1980 2025 1975..2074 2000 2020 2040 2060 1980 2050 2000..2099 2000 2020 2040 2060 2080
appendTwoDigitWeekyear
public DateTimeFormatterBuilder appendTwoDigitWeekyear(int pivot, boolean lenientParse)
- Instructs the printer to emit a numeric weekyear field which always prints
two digits. A pivot year is used during parsing to determine the range
of supported years as
(pivot - 50) .. (pivot + 49). If parse is instructed to be lenient and the digit count is not two, it is treated as an absolute weekyear. With lenient parsing, specifying a positive or negative sign before the weekyear also makes it absolute.- Since:
- 1.1
appendYearOfEra
public DateTimeFormatterBuilder appendYearOfEra(int minDigits, int maxDigits)
- Instructs the printer to emit a numeric yearOfEra field.
appendYearOfCentury
public DateTimeFormatterBuilder appendYearOfCentury(int minDigits, int maxDigits)
- Instructs the printer to emit a numeric year of century field.
appendCenturyOfEra
public DateTimeFormatterBuilder appendCenturyOfEra(int minDigits, int maxDigits)
- Instructs the printer to emit a numeric century of era field.
appendHalfdayOfDayText
public DateTimeFormatterBuilder appendHalfdayOfDayText()
- Instructs the printer to emit a locale-specific AM/PM text, and the
parser to expect it. The parser is case-insensitive.
appendDayOfWeekText
public DateTimeFormatterBuilder appendDayOfWeekText()
- Instructs the printer to emit a locale-specific dayOfWeek text. The
parser will accept a long or short dayOfWeek text, case-insensitive.
appendDayOfWeekShortText
public DateTimeFormatterBuilder appendDayOfWeekShortText()
- Instructs the printer to emit a short locale-specific dayOfWeek
text. The parser will accept a long or short dayOfWeek text,
case-insensitive.
appendMonthOfYearText
public DateTimeFormatterBuilder appendMonthOfYearText()
- Instructs the printer to emit a short locale-specific monthOfYear
text. The parser will accept a long or short monthOfYear text,
case-insensitive.
appendMonthOfYearShortText
public DateTimeFormatterBuilder appendMonthOfYearShortText()
- Instructs the printer to emit a locale-specific monthOfYear text. The
parser will accept a long or short monthOfYear text, case-insensitive.
appendEraText
public DateTimeFormatterBuilder appendEraText()
- Instructs the printer to emit a locale-specific era text (BC/AD), and
the parser to expect it. The parser is case-insensitive.
appendTimeZoneName
public DateTimeFormatterBuilder appendTimeZoneName()
- Instructs the printer to emit a locale-specific time zone name. A
parser cannot be created from this builder if a time zone name is
appended.
appendTimeZoneShortName
public DateTimeFormatterBuilder appendTimeZoneShortName()
- Instructs the printer to emit a short locale-specific time zone
name. A parser cannot be created from this builder if time zone
name is appended.
appendTimeZoneId
public DateTimeFormatterBuilder appendTimeZoneId()
- Instructs the printer to emit the identifier of the time zone.
This field cannot currently be parsed.
appendTimeZoneOffset
public DateTimeFormatterBuilder appendTimeZoneOffset(java.lang.String zeroOffsetText, boolean showSeparators, int minFields, int maxFields)
- Instructs the printer to emit text and numbers to display time zone
offset from UTC. A parser will use the parsed time zone offset to adjust
the datetime.
appendPattern
public DateTimeFormatterBuilder appendPattern(java.lang.String pattern)
- Calls upon DateTimeFormat to parse the pattern and append the
results into this builder.
getFormatter
private java.lang.Object getFormatter()
isPrinter
private boolean isPrinter(java.lang.Object f)
isParser
private boolean isParser(java.lang.Object f)
isFormatter
private boolean isFormatter(java.lang.Object f)
appendUnknownString
static void appendUnknownString(java.lang.StringBuffer buf, int len)
printUnknownString
static void printUnknownString(java.io.Writer out, int len) throws java.io.IOException
|
|||||||||
| Home >> All >> org >> joda >> time >> [ format overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.joda.time.format.DateTimeFormatterBuilder