LocalDateTime.Parse 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Parse(ICharSequence) | |
Parse(String) | |
Parse(ICharSequence, DateTimeFormatter) | |
Parse(String, DateTimeFormatter) |
Parse(ICharSequence)
[Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public static Java.Time.LocalDateTime? Parse (Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
static member Parse : Java.Lang.ICharSequence -> Java.Time.LocalDateTime
参数
- text
- ICharSequence
返回
- 属性
适用于
Parse(String)
public static Java.Time.LocalDateTime? Parse (string? text);
static member Parse : string -> Java.Time.LocalDateTime
参数
- text
- String
返回
适用于
Parse(ICharSequence, DateTimeFormatter)
[Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;Ljava/time/format/DateTimeFormatter;)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public static Java.Time.LocalDateTime? Parse (Java.Lang.ICharSequence? text, Java.Time.Format.DateTimeFormatter? formatter);
[<Android.Runtime.Register("parse", "(Ljava/lang/CharSequence;Ljava/time/format/DateTimeFormatter;)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
static member Parse : Java.Lang.ICharSequence * Java.Time.Format.DateTimeFormatter -> Java.Time.LocalDateTime
参数
- text
- ICharSequence
- formatter
- DateTimeFormatter
返回
- 属性
适用于
Parse(String, DateTimeFormatter)
public static Java.Time.LocalDateTime? Parse (string? text, Java.Time.Format.DateTimeFormatter? formatter);
static member Parse : string * Java.Time.Format.DateTimeFormatter -> Java.Time.LocalDateTime
参数
- text
- String
- formatter
- DateTimeFormatter