Compartilhar via


Time.Format(String) Method

Definition

Print the current value given the format string provided.

[Android.Runtime.Register("format", "(Ljava/lang/String;)Ljava/lang/String;", "GetFormat_Ljava_lang_String_Handler")]
public virtual string? Format (string? format);
[<Android.Runtime.Register("format", "(Ljava/lang/String;)Ljava/lang/String;", "GetFormat_Ljava_lang_String_Handler")>]
abstract member Format : string -> string
override this.Format : string -> string

Parameters

format
String

a string containing the desired format.

Returns

a String containing the current time expressed in the current locale.

Attributes

Remarks

Print the current value given the format string provided. See strftime(3) manual page for what means what. The final string must be less than 256 characters.

Java documentation for android.text.format.Time.format(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