Udostępnij za pośrednictwem


DateTimeFormatterBuilder.AppendOffset(String, String) Method

Definition

Appends the zone offset, such as '+01:00', to the formatter.

[Android.Runtime.Register("appendOffset", "(Ljava/lang/String;Ljava/lang/String;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendOffset (string? pattern, string? noOffsetText);
[<Android.Runtime.Register("appendOffset", "(Ljava/lang/String;Ljava/lang/String;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendOffset : string * string -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

pattern
String

the pattern to use, not null

noOffsetText
String

the text to use when the offset is zero, not null

Returns

this, for chaining, not null

Attributes

Remarks

Java documentation for java.time.format.DateTimeFormatterBuilder.appendOffset(java.lang.String, java.lang.String).

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