OffsetDateTime.Of 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Of(LocalDateTime, ZoneOffset) | |
Of(LocalDate, LocalTime, ZoneOffset) | |
Of(Int32, Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset) |
Of(LocalDateTime, ZoneOffset)
[Android.Runtime.Register("of", "(Ljava/time/LocalDateTime;Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public static Java.Time.OffsetDateTime? Of (Java.Time.LocalDateTime? dateTime, Java.Time.ZoneOffset? offset);
[<Android.Runtime.Register("of", "(Ljava/time/LocalDateTime;Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
static member Of : Java.Time.LocalDateTime * Java.Time.ZoneOffset -> Java.Time.OffsetDateTime
參數
- dateTime
- LocalDateTime
- offset
- ZoneOffset
傳回
- 屬性
適用於
Of(LocalDate, LocalTime, ZoneOffset)
[Android.Runtime.Register("of", "(Ljava/time/LocalDate;Ljava/time/LocalTime;Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public static Java.Time.OffsetDateTime? Of (Java.Time.LocalDate? date, Java.Time.LocalTime? time, Java.Time.ZoneOffset? offset);
[<Android.Runtime.Register("of", "(Ljava/time/LocalDate;Ljava/time/LocalTime;Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
static member Of : Java.Time.LocalDate * Java.Time.LocalTime * Java.Time.ZoneOffset -> Java.Time.OffsetDateTime
參數
- date
- LocalDate
- time
- LocalTime
- offset
- ZoneOffset
傳回
- 屬性
適用於
Of(Int32, Int32, Int32, Int32, Int32, Int32, Int32, ZoneOffset)
[Android.Runtime.Register("of", "(IIIIIIILjava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public static Java.Time.OffsetDateTime? Of (int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, Java.Time.ZoneOffset? offset);
[<Android.Runtime.Register("of", "(IIIIIIILjava/time/ZoneOffset;)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
static member Of : int * int * int * int * int * int * int * Java.Time.ZoneOffset -> Java.Time.OffsetDateTime
參數
- year
- Int32
- month
- Int32
- dayOfMonth
- Int32
- hour
- Int32
- minute
- Int32
- second
- Int32
- nanoOfSecond
- Int32
- offset
- ZoneOffset
傳回
- 屬性