OffsetDateTime.Parse メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| Parse(ICharSequence) |
2007-12-03T10:15:30+01:00 などのテキスト文字列から OffsetDateTime のインスタンスを取得します。 |
| Parse(String) | |
| Parse(ICharSequence, DateTimeFormatter) |
特定のフォーマッタを使用して、テキスト文字列から OffsetDateTime のインスタンスを取得します。 |
| Parse(String, DateTimeFormatter) |
Parse(ICharSequence)
2007-12-03T10:15:30+01:00 などのテキスト文字列から OffsetDateTime のインスタンスを取得します。
[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
"2007-12-03T10:15:30+01:00" などの解析するテキスト。null ではありません
返品
null ではなく、解析されたオフセット日時
- 属性
注釈
2007-12-03T10:15:30+01:00 などのテキスト文字列から OffsetDateTime のインスタンスを取得します。 文字列は有効な日時を表す必要があり、DateTimeFormatter.ISO_OFFSET_DATE_TIME を使用して解析されます。
適用対象
Parse(String)
public static Java.Time.OffsetDateTime? Parse(string? text);
static member Parse : string -> Java.Time.OffsetDateTime
パラメーター
- text
- String
返品
適用対象
Parse(ICharSequence, DateTimeFormatter)
特定のフォーマッタを使用して、テキスト文字列から OffsetDateTime のインスタンスを取得します。
[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
null ではなく、解析するテキスト
- formatter
- DateTimeFormatter
null ではなく、使用するフォーマッタ
返品
null ではなく、解析されたオフセット日時
- 属性
注釈
特定のフォーマッタを使用して、テキスト文字列から OffsetDateTime のインスタンスを取得します。 テキストはフォーマッタを使用して解析され、日時が返されます。
適用対象
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