Share via


RelativeDateTimeFormatter.FormatToValue Method

Definition

Overloads

FormatToValue(Double, RelativeDateTimeFormatter+RelativeDateTimeUnit)
FormatToValue(Double, RelativeDateTimeFormatter+Direction, RelativeDateTimeFormatter+RelativeUnit)
FormatToValue(RelativeDateTimeFormatter+Direction, RelativeDateTimeFormatter+AbsoluteUnit)

FormatToValue(Double, RelativeDateTimeFormatter+RelativeDateTimeUnit)

[Android.Runtime.Register("formatToValue", "(DLandroid/icu/text/RelativeDateTimeFormatter$RelativeDateTimeUnit;)Landroid/icu/text/RelativeDateTimeFormatter$FormattedRelativeDateTime;", "", ApiSince=31)]
public Android.Icu.Text.RelativeDateTimeFormatter.FormattedRelativeDateTime? FormatToValue (double offset, Android.Icu.Text.RelativeDateTimeFormatter.RelativeDateTimeUnit? unit);
[<Android.Runtime.Register("formatToValue", "(DLandroid/icu/text/RelativeDateTimeFormatter$RelativeDateTimeUnit;)Landroid/icu/text/RelativeDateTimeFormatter$FormattedRelativeDateTime;", "", ApiSince=31)>]
member this.FormatToValue : double * Android.Icu.Text.RelativeDateTimeFormatter.RelativeDateTimeUnit -> Android.Icu.Text.RelativeDateTimeFormatter.FormattedRelativeDateTime

Parameters

offset
Double

Returns

Attributes

Applies to

FormatToValue(Double, RelativeDateTimeFormatter+Direction, RelativeDateTimeFormatter+RelativeUnit)

[Android.Runtime.Register("formatToValue", "(DLandroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$RelativeUnit;)Landroid/icu/text/RelativeDateTimeFormatter$FormattedRelativeDateTime;", "", ApiSince=31)]
public Android.Icu.Text.RelativeDateTimeFormatter.FormattedRelativeDateTime? FormatToValue (double quantity, Android.Icu.Text.RelativeDateTimeFormatter.Direction? direction, Android.Icu.Text.RelativeDateTimeFormatter.RelativeUnit? unit);
[<Android.Runtime.Register("formatToValue", "(DLandroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$RelativeUnit;)Landroid/icu/text/RelativeDateTimeFormatter$FormattedRelativeDateTime;", "", ApiSince=31)>]
member this.FormatToValue : double * Android.Icu.Text.RelativeDateTimeFormatter.Direction * Android.Icu.Text.RelativeDateTimeFormatter.RelativeUnit -> Android.Icu.Text.RelativeDateTimeFormatter.FormattedRelativeDateTime

Parameters

quantity
Double

Returns

Attributes

Applies to

FormatToValue(RelativeDateTimeFormatter+Direction, RelativeDateTimeFormatter+AbsoluteUnit)

[Android.Runtime.Register("formatToValue", "(Landroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$AbsoluteUnit;)Landroid/icu/text/RelativeDateTimeFormatter$FormattedRelativeDateTime;", "", ApiSince=31)]
public Android.Icu.Text.RelativeDateTimeFormatter.FormattedRelativeDateTime? FormatToValue (Android.Icu.Text.RelativeDateTimeFormatter.Direction? direction, Android.Icu.Text.RelativeDateTimeFormatter.AbsoluteUnit? unit);
[<Android.Runtime.Register("formatToValue", "(Landroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$AbsoluteUnit;)Landroid/icu/text/RelativeDateTimeFormatter$FormattedRelativeDateTime;", "", ApiSince=31)>]
member this.FormatToValue : Android.Icu.Text.RelativeDateTimeFormatter.Direction * Android.Icu.Text.RelativeDateTimeFormatter.AbsoluteUnit -> Android.Icu.Text.RelativeDateTimeFormatter.FormattedRelativeDateTime

Parameters

Returns

Attributes

Applies to