DateTimeFormatter.ParseBest Method

Definition

Overloads

Name Description
ParseBest(ICharSequence, ITemporalQuery[])

Fully parses the text producing an object of one of the specified types.

ParseBest(String, ITemporalQuery[])

Fully parses the text producing an object of one of the specified types.

ParseBest(ICharSequence, ITemporalQuery[])

Fully parses the text producing an object of one of the specified types.

[Android.Runtime.Register("parseBest", "(Ljava/lang/CharSequence;[Ljava/time/temporal/TemporalQuery;)Ljava/time/temporal/TemporalAccessor;", "", ApiSince=26)]
public Java.Time.Temporal.ITemporalAccessor? ParseBest(Java.Lang.ICharSequence? text, params Java.Time.Temporal.ITemporalQuery[]? queries);
[<Android.Runtime.Register("parseBest", "(Ljava/lang/CharSequence;[Ljava/time/temporal/TemporalQuery;)Ljava/time/temporal/TemporalAccessor;", "", ApiSince=26)>]
member this.ParseBest : Java.Lang.ICharSequence * Java.Time.Temporal.ITemporalQuery[] -> Java.Time.Temporal.ITemporalAccessor

Parameters

text
ICharSequence

the text to parse, not null

queries
ITemporalQuery[]

the queries to use, at least two queries must be specified, not null

Returns

the parsed date-time, not null

Attributes

Remarks

The queries are invoked in order until one successfully obtains a result.

Applies to

ParseBest(String, ITemporalQuery[])

Fully parses the text producing an object of one of the specified types.

public Java.Time.Temporal.ITemporalAccessor? ParseBest(string? text, params Java.Time.Temporal.ITemporalQuery[]? queries);
member this.ParseBest : string * Java.Time.Temporal.ITemporalQuery[] -> Java.Time.Temporal.ITemporalAccessor

Parameters

text
String

the text to parse, not null

queries
ITemporalQuery[]

the queries to use, at least two queries must be specified, not null

Returns

the parsed date-time, not null

Remarks

The queries are invoked in order until one successfully obtains a result.

Applies to