Package | Description |
---|---|
org.joda.time.format |
Provides printing and parsing support for instants and durations.
|
Modifier and Type | Method and Description |
---|---|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append(DateTimeFormatter formatter)
Appends another formatter.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append(DateTimeParser parser)
Appends just a parser.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append(DateTimePrinter printer)
Appends just a printer.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append(DateTimePrinter printer,
DateTimeParser parser)
Appends a printer/parser pair.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append(DateTimePrinter printer,
DateTimeParser[] parsers)
Appends a printer and a set of matching parsers.
|
private DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append0(InternalPrinter printer,
InternalParser parser) |
private DateTimeFormatterBuilder |
DateTimeFormatterBuilder.append0(java.lang.Object element) |
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendCenturyOfEra(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric century of era field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendClockhourOfDay(int minDigits)
Instructs the printer to emit a numeric clockhourOfDay field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendClockhourOfHalfday(int minDigits)
Instructs the printer to emit a numeric clockhourOfHalfday field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendDayOfMonth(int minDigits)
Instructs the printer to emit a numeric dayOfMonth field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendDayOfWeek(int minDigits)
Instructs the printer to emit a numeric dayOfWeek field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendDayOfWeekShortText()
Instructs the printer to emit a short locale-specific dayOfWeek
text.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendDayOfWeekText()
Instructs the printer to emit a locale-specific dayOfWeek text.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendDayOfYear(int minDigits)
Instructs the printer to emit a numeric dayOfYear field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendDecimal(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 |
DateTimeFormatterBuilder.appendEraText()
Instructs the printer to emit a locale-specific era text (BC/AD), and
the parser to expect it.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFixedDecimal(DateTimeFieldType fieldType,
int numDigits)
Instructs the printer to emit a field value as a fixed-width decimal
number (smaller numbers will be left-padded with zeros), and the parser
to expect an unsigned decimal number with the same fixed width.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFixedSignedDecimal(DateTimeFieldType fieldType,
int numDigits)
Instructs the printer to emit a field value as a fixed-width decimal
number (smaller numbers will be left-padded with zeros), and the parser
to expect an signed decimal number with the same fixed width.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFraction(DateTimeFieldType fieldType,
int minDigits,
int maxDigits)
Instructs the printer to emit a remainder of time as a decimal fraction,
without decimal point.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFractionOfDay(int minDigits,
int maxDigits)
Appends the print/parse of a fractional day.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFractionOfHour(int minDigits,
int maxDigits)
Appends the print/parse of a fractional hour.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFractionOfMinute(int minDigits,
int maxDigits)
Appends the print/parse of a fractional minute.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendFractionOfSecond(int minDigits,
int maxDigits)
Appends the print/parse of a fractional second.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendHalfdayOfDayText()
Instructs the printer to emit a locale-specific AM/PM text, and the
parser to expect it.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendHourOfDay(int minDigits)
Instructs the printer to emit a numeric hourOfDay field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendHourOfHalfday(int minDigits)
Instructs the printer to emit a numeric hourOfHalfday field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLiteral(char c)
Instructs the printer to emit a specific character, and the parser to
expect it.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendLiteral(java.lang.String text)
Instructs the printer to emit specific text, and the parser to expect
it.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendMillisOfDay(int minDigits)
Instructs the printer to emit a numeric millisOfDay field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendMillisOfSecond(int minDigits)
Instructs the printer to emit a numeric millisOfSecond field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendMinuteOfDay(int minDigits)
Instructs the printer to emit a numeric minuteOfDay field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendMinuteOfHour(int minDigits)
Instructs the printer to emit a numeric minuteOfHour field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendMonthOfYear(int minDigits)
Instructs the printer to emit a numeric monthOfYear field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendMonthOfYearShortText()
Instructs the printer to emit a locale-specific monthOfYear text.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendMonthOfYearText()
Instructs the printer to emit a short locale-specific monthOfYear
text.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendOptional(DateTimeParser parser)
Appends just a parser element which is optional.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendPattern(java.lang.String pattern)
Calls upon
DateTimeFormat to parse the pattern and append the
results into this builder. |
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendSecondOfDay(int minDigits)
Instructs the printer to emit a numeric secondOfDay field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendSecondOfMinute(int minDigits)
Instructs the printer to emit a numeric secondOfMinute field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendShortText(DateTimeFieldType fieldType)
Instructs the printer to emit a field value as short text, and the
parser to expect text.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendSignedDecimal(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 |
DateTimeFormatterBuilder.appendText(DateTimeFieldType fieldType)
Instructs the printer to emit a field value as text, and the
parser to expect text.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTimeZoneId()
Instructs the printer to emit the identifier of the time zone.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTimeZoneName()
Instructs the printer to emit a locale-specific time zone name.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTimeZoneName(java.util.Map<java.lang.String,DateTimeZone> parseLookup)
Instructs the printer to emit a locale-specific time zone name, providing a lookup for parsing.
|
DateTimeFormatterBuilder |
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 |
DateTimeFormatterBuilder.appendTimeZoneOffset(java.lang.String zeroOffsetPrintText,
java.lang.String zeroOffsetParseText,
boolean showSeparators,
int minFields,
int maxFields)
Instructs the printer to emit text and numbers to display time zone
offset from UTC.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTimeZoneShortName()
Instructs the printer to emit a short locale-specific time zone name.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTimeZoneShortName(java.util.Map<java.lang.String,DateTimeZone> parseLookup)
Instructs the printer to emit a short locale-specific time zone
name, providing a lookup for parsing.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTwoDigitWeekyear(int pivot)
Instructs the printer to emit a numeric weekyear field which always prints
and parses two digits.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTwoDigitWeekyear(int pivot,
boolean lenientParse)
Instructs the printer to emit a numeric weekyear field which always prints
two digits.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTwoDigitYear(int pivot)
Instructs the printer to emit a numeric year field which always prints
and parses two digits.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendTwoDigitYear(int pivot,
boolean lenientParse)
Instructs the printer to emit a numeric year field which always prints
two digits.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendWeekOfWeekyear(int minDigits)
Instructs the printer to emit a numeric weekOfWeekyear field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendWeekyear(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric weekyear field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendYear(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric year field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendYearOfCentury(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric year of century field.
|
DateTimeFormatterBuilder |
DateTimeFormatterBuilder.appendYearOfEra(int minDigits,
int maxDigits)
Instructs the printer to emit a numeric yearOfEra field.
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
DateTimeFormat.appendPatternTo(DateTimeFormatterBuilder builder,
java.lang.String pattern)
Parses the given pattern and appends the rules to the given
DateTimeFormatterBuilder.
|
private static void |
ISODateTimeFormat.appendSeparator(DateTimeFormatterBuilder bld,
boolean extended)
Appends the separator if necessary.
|
private static boolean |
ISODateTimeFormat.dateByMonth(DateTimeFormatterBuilder bld,
java.util.Collection<DateTimeFieldType> fields,
boolean extended,
boolean strictISO)
Creates a date using the calendar date format.
|
private static boolean |
ISODateTimeFormat.dateByOrdinal(DateTimeFormatterBuilder bld,
java.util.Collection<DateTimeFieldType> fields,
boolean extended,
boolean strictISO)
Creates a date using the ordinal date format.
|
private static boolean |
ISODateTimeFormat.dateByWeek(DateTimeFormatterBuilder bld,
java.util.Collection<DateTimeFieldType> fields,
boolean extended,
boolean strictISO)
Creates a date using the calendar date format.
|
private static void |
DateTimeFormat.parsePatternTo(DateTimeFormatterBuilder builder,
java.lang.String pattern)
Parses the given pattern and appends the rules to the given
DateTimeFormatterBuilder.
|
private static void |
ISODateTimeFormat.time(DateTimeFormatterBuilder bld,
java.util.Collection<DateTimeFieldType> fields,
boolean extended,
boolean strictISO,
boolean reducedPrec,
boolean datePresent)
Adds the time fields to the builder.
|