語言

DateTimePatternGenerator.GetDateTimeFormat(Int32) 方法

定義

Getter 對應 setDateTimeFormat。

[Android.Runtime.Register("getDateTimeFormat", "(I)Ljava/lang/String;", "GetGetDateTimeFormat_IHandler", ApiSince=35)]
public virtual string? GetDateTimeFormat(int style);
[<Android.Runtime.Register("getDateTimeFormat", "(I)Ljava/lang/String;", "GetGetDateTimeFormat_IHandler", ApiSince=35)>]
abstract member GetDateTimeFormat : int -> string
override this.GetDateTimeFormat : int -> string

參數

style
Int32

DateFormat.FULL..日期格式。SHORT。 若超出範圍,則會拋出例外。

傳回

目前指定風格的 dateTimeFormat 。

屬性

備註

Getter 對應 setDateTimeFormat。

Java 文件 android.icu.text.DateTimePatternGenerator.getDateTimeFormat(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於