Sdílet prostřednictvím


DateTimeFormatter Class

Definition

Formatter for printing and parsing date-time objects.

[Android.Runtime.Register("java/time/format/DateTimeFormatter", ApiSince=26, DoNotGenerateAcw=true)]
public sealed class DateTimeFormatter : Java.Lang.Object
[<Android.Runtime.Register("java/time/format/DateTimeFormatter", ApiSince=26, DoNotGenerateAcw=true)>]
type DateTimeFormatter = class
    inherit Object
Inheritance
DateTimeFormatter
Attributes

Remarks

Formatter for printing and parsing date-time objects.

This class provides the main application entry point for printing and parsing and provides common implementations of DateTimeFormatter: <ul> <li>Using predefined constants, such as #ISO_LOCAL_DATE</li> <li>Using pattern letters, such as uuuu-MMM-dd</li> <li>Using localized styles, such as long or medium</li> </ul>

More complex formatters are provided by DateTimeFormatterBuilder DateTimeFormatterBuilder.

The main date-time classes provide two methods - one for formatting, format(DateTimeFormatter formatter), and one for parsing, parse(CharSequence text, DateTimeFormatter formatter).

For example: <blockquote>

LocalDate date = LocalDate.now();
             String text = date.format(formatter);
             LocalDate parsedDate = LocalDate.parse(text, formatter);

</blockquote>

In addition to the format, formatters can be created with desired Locale, Chronology, ZoneId, and DecimalStyle.

The #withLocale withLocale method returns a new formatter that overrides the locale. The locale affects some aspects of formatting and parsing. For example, the #ofLocalizedDate ofLocalizedDate provides a formatter that uses the locale specific date format.

The #withChronology withChronology method returns a new formatter that overrides the chronology. If overridden, the date-time value is converted to the chronology before formatting. During parsing the date-time value is converted to the chronology before it is returned.

The #withZone withZone method returns a new formatter that overrides the zone. If overridden, the date-time value is converted to a ZonedDateTime with the requested ZoneId before formatting. During parsing the ZoneId is applied before the value is returned.

The #withDecimalStyle withDecimalStyle method returns a new formatter that overrides the DecimalStyle. The DecimalStyle symbols are used for formatting and parsing.

Some applications may need to use the older Format java.text.Format class for formatting. The #toFormat() method returns an implementation of java.text.Format.

<h2 id="predefined">Predefined Formatters</h2> <table class="striped" style="text-align:left"> <caption>Predefined Formatters</caption> <thead> <tr> <th scope="col">Formatter</th> <th scope="col">Description</th> <th scope="col">Example</th> </tr> </thead> <tbody> <tr> <th scope="row">#ofLocalizedDate ofLocalizedDate(dateStyle)</th> <td> Formatter with date style from the locale </td> <td> '2011-12-03'</td> </tr> <tr> <th scope="row"> #ofLocalizedTime ofLocalizedTime(timeStyle)</th> <td> Formatter with time style from the locale </td> <td> '10:15:30'</td> </tr> <tr> <th scope="row"> #ofLocalizedDateTime ofLocalizedDateTime(dateTimeStyle)</th> <td> Formatter with a style for date and time from the locale</td> <td> '3 Jun 2008 11:05:30'</td> </tr> <tr> <th scope="row"> #ofLocalizedDateTime ofLocalizedDateTime(dateStyle,timeStyle)</th> <td> Formatter with date and time styles from the locale </td> <td> '3 Jun 2008 11:05'</td> </tr> <tr> <th scope="row"> #BASIC_ISO_DATE</th> <td>Basic ISO date </td> <td>'20111203'</td> </tr> <tr> <th scope="row"> #ISO_LOCAL_DATE</th> <td> ISO Local Date </td> <td>'2011-12-03'</td> </tr> <tr> <th scope="row"> #ISO_OFFSET_DATE</th> <td> ISO Date with offset </td> <td>'2011-12-03+01:00'</td> </tr> <tr> <th scope="row"> #ISO_DATE</th> <td> ISO Date with or without offset </td> <td> '2011-12-03+01:00'; '2011-12-03'</td> </tr> <tr> <th scope="row"> #ISO_LOCAL_TIME</th> <td> Time without offset </td> <td>'10:15:30'</td> </tr> <tr> <th scope="row"> #ISO_OFFSET_TIME</th> <td> Time with offset </td> <td>'10:15:30+01:00'</td> </tr> <tr> <th scope="row"> #ISO_TIME</th> <td> Time with or without offset </td> <td>'10:15:30+01:00'; '10:15:30'</td> </tr> <tr> <th scope="row"> #ISO_LOCAL_DATE_TIME</th> <td> ISO Local Date and Time </td> <td>'2011-12-03T10:15:30'</td> </tr> <tr> <th scope="row"> #ISO_OFFSET_DATE_TIME</th> <td> Date Time with Offset </td><td>'2011-12-03T10:15:30+01:00'</td> </tr> <tr> <th scope="row"> #ISO_ZONED_DATE_TIME</th> <td> Zoned Date Time </td> <td>'2011-12-03T10:15:30+01:00[Europe/Paris]'</td> </tr> <tr> <th scope="row"> #ISO_DATE_TIME</th> <td> Date and time with ZoneId </td> <td>'2011-12-03T10:15:30+01:00[Europe/Paris]'</td> </tr> <tr> <th scope="row"> #ISO_ORDINAL_DATE</th> <td> Year and day of year </td> <td>'2012-337'</td> </tr> <tr> <th scope="row"> #ISO_WEEK_DATE</th> <td> Year and Week </td> <td>'2012-W48-6'</td></tr> <tr> <th scope="row"> #ISO_INSTANT</th> <td> Date and Time of an Instant </td> <td>'2011-12-03T10:15:30Z' </td> </tr> <tr> <th scope="row"> #RFC_1123_DATE_TIME</th> <td> RFC 1123 / RFC 822 </td> <td>'Tue, 3 Jun 2008 11:05:30 GMT'</td> </tr> </tbody> </table>

<h2 id="patterns">Patterns for Formatting and Parsing</h2> Patterns are based on a simple sequence of letters and symbols. A pattern is used to create a Formatter using the #ofPattern(String) and #ofPattern(String, Locale) methods. For example, "d MMM uuuu" will format 2011-12-03 as '3&nbsp;Dec&nbsp;2011'. A formatter created from a pattern can be used as many times as necessary, it is immutable and is thread-safe.

For example: <blockquote>

LocalDate date = LocalDate.now();
             DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MM dd");
             String text = date.format(formatter);
             LocalDate parsedDate = LocalDate.parse(text, formatter);

</blockquote>

All letters 'A' to 'Z' and 'a' to 'z' are reserved as pattern letters. The following pattern letters are defined: <table class="striped"> <caption>Pattern Letters and Symbols</caption> <thead> <tr><th scope="col">Symbol</th> <th scope="col">Meaning</th> <th scope="col">Presentation</th> <th scope="col">Examples</th> </thead> <tbody> <tr><th scope="row">G</th> <td>era</td> <td>text</td> <td>AD; Anno Domini; A</td> <tr><th scope="row">u</th> <td>year</td> <td>year</td> <td>2004; 04</td> <tr><th scope="row">y</th> <td>year-of-era</td> <td>year</td> <td>2004; 04</td> <tr><th scope="row">D</th> <td>day-of-year</td> <td>number</td> <td>189</td> <tr><th scope="row">M/L</th> <td>month-of-year</td> <td>number/text</td> <td>7; 07; Jul; July; J</td> <tr><th scope="row">d</th> <td>day-of-month</td> <td>number</td> <td>10</td> <tr><th scope="row">g</th> <td>modified-julian-day</td> <td>number</td> <td>2451334</td>

<tr><th scope="row">Q/q</th> <td>quarter-of-year</td> <td>number/text</td> <td>3; 03; Q3; 3rd quarter</td> <tr><th scope="row">Y</th> <td>week-based-year</td> <td>year</td> <td>1996; 96</td> <tr><th scope="row">w</th> <td>week-of-week-based-year</td> <td>number</td> <td>27</td> <tr><th scope="row">W</th> <td>week-of-month</td> <td>number</td> <td>4</td> <tr><th scope="row">E</th> <td>day-of-week</td> <td>text</td> <td>Tue; Tuesday; T</td> <tr><th scope="row">e/c</th> <td>localized day-of-week</td> <td>number/text</td> <td>2; 02; Tue; Tuesday; T</td> <tr><th scope="row">F</th> <td>day-of-week-in-month</td> <td>number</td> <td>3</td>

<tr><th scope="row">a</th> <td>am-pm-of-day</td> <td>text</td> <td>PM</td> <tr><th scope="row">h</th> <td>clock-hour-of-am-pm (1-12)</td> <td>number</td> <td>12</td> <tr><th scope="row">K</th> <td>hour-of-am-pm (0-11)</td> <td>number</td> <td>0</td> <tr><th scope="row">k</th> <td>clock-hour-of-day (1-24)</td> <td>number</td> <td>24</td>

<tr><th scope="row">H</th> <td>hour-of-day (0-23)</td> <td>number</td> <td>0</td> <tr><th scope="row">m</th> <td>minute-of-hour</td> <td>number</td> <td>30</td> <tr><th scope="row">s</th> <td>second-of-minute</td> <td>number</td> <td>55</td> <tr><th scope="row">S</th> <td>fraction-of-second</td> <td>fraction</td> <td>978</td> <tr><th scope="row">A</th> <td>milli-of-day</td> <td>number</td> <td>1234</td> <tr><th scope="row">n</th> <td>nano-of-second</td> <td>number</td> <td>987654321</td> <tr><th scope="row">N</th> <td>nano-of-day</td> <td>number</td> <td>1234000000</td>

<tr><th scope="row">V</th> <td>time-zone ID</td> <td>zone-id</td> <td>America/Los_Angeles; Z; -08:30</td> <tr><th scope="row">v</th> <td>generic time-zone name</td> <td>zone-name</td> <td>Pacific Time; PT</td> <tr><th scope="row">z</th> <td>time-zone name</td> <td>zone-name</td> <td>Pacific Standard Time; PST</td> <tr><th scope="row">O</th> <td>localized zone-offset</td> <td>offset-O</td> <td>GMT+8; GMT+08:00; UTC-08:00</td> <tr><th scope="row">X</th> <td>zone-offset 'Z' for zero</td> <td>offset-X</td> <td>Z; -08; -0830; -08:30; -083015; -08:30:15</td> <tr><th scope="row">x</th> <td>zone-offset</td> <td>offset-x</td> <td>+0000; -08; -0830; -08:30; -083015; -08:30:15</td> <tr><th scope="row">Z</th> <td>zone-offset</td> <td>offset-Z</td> <td>+0000; -0800; -08:00</td>

<tr><th scope="row">p</th> <td>pad next</td> <td>pad modifier</td> <td>1</td>

<tr><th scope="row">'</th> <td>escape for text</td> <td>delimiter</td> <td></td> <tr><th scope="row">''</th> <td>single quote</td> <td>literal</td> <td>'</td> <tr><th scope="row">[</th> <td>optional section start</td> <td></td> <td></td> <tr><th scope="row">]</th> <td>optional section end</td> <td></td> <td></td> <tr><th scope="row">#</th> <td>reserved for future use</td> <td></td> <td></td> <tr><th scope="row">{</th> <td>reserved for future use</td> <td></td> <td></td> <tr><th scope="row">}</th> <td>reserved for future use</td> <td></td> <td></td> </tbody> </table>

The count of pattern letters determines the format.

<b>Text</b>: The text style is determined based on the number of pattern letters used. Less than 4 pattern letters will use the TextStyle#SHORT short form. Exactly 4 pattern letters will use the TextStyle#FULL full form. Exactly 5 pattern letters will use the TextStyle#NARROW narrow form. Pattern letters 'L', 'c', and 'q' specify the stand-alone form of the text styles.

<b>Number</b>: If the count of letters is one, then the value is output using the minimum number of digits and without padding. Otherwise, the count of digits is used as the width of the output field, with the value zero-padded as necessary. The following pattern letters have constraints on the count of letters. Only one letter of 'c' and 'F' can be specified. Up to two letters of 'd', 'H', 'h', 'K', 'k', 'm', and 's' can be specified. Up to three letters of 'D' can be specified.

<b>Number/Text</b>: If the count of pattern letters is 3 or greater, use the Text rules above. Otherwise use the Number rules above.

<b>Fraction</b>: Outputs the nano-of-second field as a fraction-of-second. The nano-of-second value has nine digits, thus the count of pattern letters is from 1 to 9. If it is less than 9, then the nano-of-second value is truncated, with only the most significant digits being output.

<b>Year</b>: The count of letters determines the minimum field width below which padding is used. If the count of letters is two, then a DateTimeFormatterBuilder#appendValueReduced reduced two digit form is used. For printing, this outputs the rightmost two digits. For parsing, this will parse using the base value of 2000, resulting in a year within the range 2000 to 2099 inclusive. If the count of letters is less than four (but not two), then the sign is only output for negative years as per SignStyle#NORMAL. Otherwise, the sign is output if the pad width is exceeded, as per SignStyle#EXCEEDS_PAD.

<b>ZoneId</b>: This outputs the time-zone ID, such as 'Europe/Paris'. If the count of letters is two, then the time-zone ID is output. Any other count of letters throws IllegalArgumentException.

<b>Zone names</b>: This outputs the display name of the time-zone ID. If the pattern letter is 'z' the output is the daylight savings aware zone name. If there is insufficient information to determine whether DST applies, the name ignoring daylight savings time will be used. If the count of letters is one, two or three, then the short name is output. If the count of letters is four, then the full name is output. Five or more letters throws IllegalArgumentException.

If the pattern letter is 'v' the output provides the zone name ignoring daylight savings time. If the count of letters is one, then the short name is output. If the count of letters is four, then the full name is output. Two, three and five or more letters throw IllegalArgumentException.

<b>Offset X and x</b>: This formats the offset based on the number of pattern letters. One letter outputs just the hour, such as '+01', unless the minute is non-zero in which case the minute is also output, such as '+0130'. Two letters outputs the hour and minute, without a colon, such as '+0130'. Three letters outputs the hour and minute, with a colon, such as '+01:30'. Four letters outputs the hour and minute and optional second, without a colon, such as '+013015'. Five letters outputs the hour and minute and optional second, with a colon, such as '+01:30:15'. Six or more letters throws IllegalArgumentException. Pattern letter 'X' (upper case) will output 'Z' when the offset to be output would be zero, whereas pattern letter 'x' (lower case) will output '+00', '+0000', or '+00:00'.

<b>Offset O</b>: With a non-zero offset, this formats the localized offset based on the number of pattern letters. One letter outputs the TextStyle#SHORT short form of the localized offset, which is localized offset text, such as 'GMT', with hour without leading zero, optional 2-digit minute and second if non-zero, and colon, for example 'GMT+8'. Four letters outputs the TextStyle#FULL full form, which is localized offset text, such as 'GMT, with 2-digit hour and minute field, optional second field if non-zero, and colon, for example 'GMT+08:00'. If the offset is zero, only localized text is output. Any other count of letters throws IllegalArgumentException.

<b>Offset Z</b>: This formats the offset based on the number of pattern letters. One, two or three letters outputs the hour and minute, without a colon, such as '+0130'. The output will be '+0000' when the offset is zero. Four letters outputs the TextStyle#FULL full form of localized offset, equivalent to four letters of Offset-O. The output will be the corresponding localized offset text if the offset is zero. Five letters outputs the hour, minute, with optional second if non-zero, with colon. It outputs 'Z' if the offset is zero. Six or more letters throws IllegalArgumentException.

<b>Optional section</b>: The optional section markers work exactly like calling DateTimeFormatterBuilder#optionalStart() and DateTimeFormatterBuilder#optionalEnd().

<b>Pad modifier</b>: Modifies the pattern that immediately follows to be padded with spaces. The pad width is determined by the number of pattern letters. This is the same as calling DateTimeFormatterBuilder#padNext(int).

For example, 'ppH' outputs the hour-of-day padded on the left with spaces to a width of 2.

Any unrecognized letter is an error. Any non-letter character, other than '[', ']', '{', '}', '#' and the single quote will be output directly. Despite this, it is recommended to use single quotes around all characters that you want to output directly to ensure that future changes do not break your application.

<h2 id="resolving">Resolving</h2> Parsing is implemented as a two-phase operation. First, the text is parsed using the layout defined by the formatter, producing a Map of field to value, a ZoneId and a Chronology. Second, the parsed data is <em>resolved</em>, by validating, combining and simplifying the various fields into more useful ones.

Five parsing methods are supplied by this class. Four of these perform both the parse and resolve phases. The fifth method, #parseUnresolved(CharSequence, ParsePosition), only performs the first phase, leaving the result unresolved. As such, it is essentially a low-level operation.

The resolve phase is controlled by two parameters, set on this class.

The ResolverStyle is an enum that offers three different approaches, strict, smart and lenient. The smart option is the default. It can be set using #withResolverStyle(ResolverStyle).

The #withResolverFields(TemporalField...) parameter allows the set of fields that will be resolved to be filtered before resolving starts. For example, if the formatter has parsed a year, month, day-of-month and day-of-year, then there are two approaches to resolve a date: (year + month + day-of-month) and (year + day-of-year). The resolver fields allows one of the two approaches to be selected. If no resolver fields are set then both approaches must result in the same date.

Resolving separate fields to form a complete date and time is a complex process with behaviour distributed across a number of classes. It follows these steps: <ol> <li>The chronology is determined. The chronology of the result is either the chronology that was parsed, or if no chronology was parsed, it is the chronology set on this class, or if that is null, it is IsoChronology. <li>The ChronoField date fields are resolved. This is achieved using Chronology#resolveDate(Map, ResolverStyle). Documentation about field resolution is located in the implementation of Chronology. <li>The ChronoField time fields are resolved. This is documented on ChronoField and is the same for all chronologies. <li>Any fields that are not ChronoField are processed. This is achieved using TemporalField#resolve(Map, TemporalAccessor, ResolverStyle). Documentation about field resolution is located in the implementation of TemporalField. <li>The ChronoField date and time fields are re-resolved. This allows fields in step four to produce ChronoField values and have them be processed into dates and times. <li>A LocalTime is formed if there is at least an hour-of-day available. This involves providing default values for minute, second and fraction of second. <li>Any remaining unresolved fields are cross-checked against any date and/or time that was resolved. Thus, an earlier stage would resolve (year + month + day-of-month) to a date, and this stage would check that day-of-week was valid for the date. <li>If an #parsedExcessDays() excess number of days was parsed then it is added to the date if a date is available. <li> If a second-based field is present, but LocalTime was not parsed, then the resolver ensures that milli, micro and nano second values are available to meet the contract of ChronoField. These will be set to zero if missing. <li>If both date and time were parsed and either an offset or zone is present, the field ChronoField#INSTANT_SECONDS is created. If an offset was parsed then the offset will be combined with the LocalDateTime to form the instant, with any zone ignored. If a ZoneId was parsed without an offset then the zone will be combined with the LocalDateTime to form the instant using the rules of ChronoLocalDateTime#atZone(ZoneId). </ol>

Added in 1.8.

Java documentation for java.time.format.DateTimeFormatter.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

BasicIsoDate

The ISO date formatter that formats or parses a date without an offset, such as '20111203'.

Chronology

Gets the overriding chronology to be used during formatting.

Class

Returns the runtime class of this Object.

(Inherited from Object)
DecimalStyle

Gets the DecimalStyle to be used during formatting.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsoDate

The ISO date formatter that formats or parses a date with the offset if available, such as '2011-12-03' or '2011-12-03+01:00'.

IsoDateTime

The ISO-like date-time formatter that formats or parses a date-time with the offset and zone if available, such as '2011-12-03T10:15:30', '2011-12-03T10:15:30+01:00' or '2011-12-03T10:15:30+01:00[Europe/Paris]'.

IsoInstant

The ISO instant formatter that formats or parses an instant in UTC, such as '2011-12-03T10:15:30Z'.

IsoLocalDate

The ISO date formatter that formats or parses a date without an offset, such as '2011-12-03'.

IsoLocalDateTime

The ISO date-time formatter that formats or parses a date-time without an offset, such as '2011-12-03T10:15:30'.

IsoLocalTime

The ISO time formatter that formats or parses a time without an offset, such as '10:15' or '10:15:30'.

IsoOffsetDate

The ISO date formatter that formats or parses a date with an offset, such as '2011-12-03+01:00'.

IsoOffsetDateTime

The ISO date-time formatter that formats or parses a date-time with an offset, such as '2011-12-03T10:15:30+01:00'.

IsoOffsetTime

The ISO time formatter that formats or parses a time with an offset, such as '10:15+01:00' or '10:15:30+01:00'.

IsoOrdinalDate

The ISO date formatter that formats or parses the ordinal date without an offset, such as '2012-337'.

IsoTime

The ISO time formatter that formats or parses a time, with the offset if available, such as '10:15', '10:15:30' or '10:15:30+01:00'.

IsoWeekDate

The ISO date formatter that formats or parses the week-based date without an offset, such as '2012-W48-6'.

IsoZonedDateTime

The ISO-like date-time formatter that formats or parses a date-time with offset and zone, such as '2011-12-03T10:15:30+01:00[Europe/Paris]'.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Locale

Gets the locale to be used during formatting.

PeerReference (Inherited from Object)
ResolverFields

Gets the resolver fields to use during parsing.

ResolverStyle

Gets the resolver style to use during parsing.

Rfc1123DateTime

The RFC-1123 date-time formatter, such as 'Tue, 3 Jun 2008 11:05:30 GMT'.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
Zone

Gets the overriding zone to be used during formatting.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Format(ITemporalAccessor)

Formats a date-time object using this formatter.

FormatTo(ITemporalAccessor, IAppendable)

Formats a date-time object to an Appendable using this formatter.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
LocalizedBy(Locale)

Returns a copy of this formatter with localized values of the locale, calendar, decimal style and/or timezone, that superseded values in this formatter.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OfLocalizedDate(FormatStyle)

Returns a locale specific date format for the ISO chronology.

OfLocalizedDateTime(FormatStyle, FormatStyle)

Returns a locale specific date and time format for the ISO chronology.

OfLocalizedDateTime(FormatStyle)

Returns a locale specific date-time formatter for the ISO chronology.

OfLocalizedTime(FormatStyle)

Returns a locale specific time format for the ISO chronology.

OfPattern(String, Locale)

Creates a formatter using the specified pattern and locale.

OfPattern(String)

Creates a formatter using the specified pattern.

Parse(ICharSequence, ITemporalQuery)

Fully parses the text producing an object of the specified type.

Parse(ICharSequence, ParsePosition)

Parses the text using this formatter, providing control over the text position.

Parse(ICharSequence)

Fully parses the text producing a temporal object.

Parse(String, ITemporalQuery)

Fully parses the text producing an object of the specified type.

Parse(String, ParsePosition)

Parses the text using this formatter, providing control over the text position.

Parse(String)

Fully parses the text producing a temporal object.

ParseBest(ICharSequence, ITemporalQuery[])
ParseBest(String, ITemporalQuery[])
ParsedExcessDays()

A query that provides access to the excess days that were parsed.

ParsedLeapSecond()

A query that provides access to whether a leap-second was parsed.

ParseUnresolved(ICharSequence, ParsePosition)

Parses the text using this formatter, without resolving the result, intended for advanced use cases.

ParseUnresolved(String, ParsePosition)

Parses the text using this formatter, without resolving the result, intended for advanced use cases.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToFormat()

Returns this formatter as a java.text.Format instance.

ToFormat(ITemporalQuery)

Returns this formatter as a java.text.Format instance that will parse using the specified query.

ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WithChronology(IChronology)

Returns a copy of this formatter with a new override chronology.

WithDecimalStyle(DecimalStyle)

Returns a copy of this formatter with a new DecimalStyle.

WithLocale(Locale)

Returns a copy of this formatter with a new locale.

WithResolverFields(ICollection<ITemporalField>)

Returns a copy of this formatter with a new set of resolver fields.

WithResolverFields(ITemporalField[])
WithResolverStyle(ResolverStyle)

Returns a copy of this formatter with a new resolver style.

WithZone(ZoneId)

Returns a copy of this formatter with a new override zone.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to