RelativeDateTimeFormatter.Format Method

Definition

Overloads

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

Format(RelativeDateTimeFormatter+Direction, RelativeDateTimeFormatter+AbsoluteUnit)

[Android.Runtime.Register("format", "(Landroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$AbsoluteUnit;)Ljava/lang/String;", "", ApiSince=24)]
public string? Format (Android.Icu.Text.RelativeDateTimeFormatter.Direction? direction, Android.Icu.Text.RelativeDateTimeFormatter.AbsoluteUnit? unit);
[<Android.Runtime.Register("format", "(Landroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$AbsoluteUnit;)Ljava/lang/String;", "", ApiSince=24)>]
member this.Format : Android.Icu.Text.RelativeDateTimeFormatter.Direction * Android.Icu.Text.RelativeDateTimeFormatter.AbsoluteUnit -> string

Parameters

Returns

Attributes

Remarks

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.

Applies to

Format(Double, RelativeDateTimeFormatter+RelativeDateTimeUnit)

[Android.Runtime.Register("format", "(DLandroid/icu/text/RelativeDateTimeFormatter$RelativeDateTimeUnit;)Ljava/lang/String;", "", ApiSince=28)]
public string? Format (double offset, Android.Icu.Text.RelativeDateTimeFormatter.RelativeDateTimeUnit? unit);
[<Android.Runtime.Register("format", "(DLandroid/icu/text/RelativeDateTimeFormatter$RelativeDateTimeUnit;)Ljava/lang/String;", "", ApiSince=28)>]
member this.Format : double * Android.Icu.Text.RelativeDateTimeFormatter.RelativeDateTimeUnit -> string

Parameters

offset
Double

Returns

Attributes

Applies to

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

[Android.Runtime.Register("format", "(DLandroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$RelativeUnit;)Ljava/lang/String;", "", ApiSince=24)]
public string? Format (double quantity, Android.Icu.Text.RelativeDateTimeFormatter.Direction? direction, Android.Icu.Text.RelativeDateTimeFormatter.RelativeUnit? unit);
[<Android.Runtime.Register("format", "(DLandroid/icu/text/RelativeDateTimeFormatter$Direction;Landroid/icu/text/RelativeDateTimeFormatter$RelativeUnit;)Ljava/lang/String;", "", ApiSince=24)>]
member this.Format : double * Android.Icu.Text.RelativeDateTimeFormatter.Direction * Android.Icu.Text.RelativeDateTimeFormatter.RelativeUnit -> string

Parameters

quantity
Double

Returns

Attributes

Remarks

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.

Applies to