OffsetDateTime.Parse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Parse(ICharSequence) | |
Parse(String) | |
Parse(ICharSequence, DateTimeFormatter) | |
Parse(String, DateTimeFormatter) |
Parse(ICharSequence)
[Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public static Java.Time.OffsetDateTime? Parse (Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
static member Parse : Java.Lang.ICharSequence -> Java.Time.OffsetDateTime
參數
- text
- ICharSequence
傳回
- 屬性
適用於
Parse(String)
public static Java.Time.OffsetDateTime? Parse (string? text);
static member Parse : string -> Java.Time.OffsetDateTime
參數
- text
- String
傳回
適用於
Parse(ICharSequence, DateTimeFormatter)
[Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;Ljava/time/format/DateTimeFormatter;)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public static Java.Time.OffsetDateTime? Parse (Java.Lang.ICharSequence? text, Java.Time.Format.DateTimeFormatter? formatter);
[<Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;Ljava/time/format/DateTimeFormatter;)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
static member Parse : Java.Lang.ICharSequence * Java.Time.Format.DateTimeFormatter -> Java.Time.OffsetDateTime
參數
- text
- ICharSequence
- formatter
- DateTimeFormatter
傳回
- 屬性
適用於
Parse(String, DateTimeFormatter)
public static Java.Time.OffsetDateTime? Parse (string? text, Java.Time.Format.DateTimeFormatter? formatter);
static member Parse : string * Java.Time.Format.DateTimeFormatter -> Java.Time.OffsetDateTime
參數
- text
- String
- formatter
- DateTimeFormatter