ZonedDateTime.Of 方法

定义

重载

Of(LocalDateTime, ZoneId)
Of(LocalDate, LocalTime, ZoneId)
Of(Int32, Int32, Int32, Int32, Int32, Int32, Int32, ZoneId)

Of(LocalDateTime, ZoneId)

[Android.Runtime.Register("of", "(Ljava/time/LocalDateTime;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public static Java.Time.ZonedDateTime? Of (Java.Time.LocalDateTime? localDateTime, Java.Time.ZoneId? zone);
[<Android.Runtime.Register("of", "(Ljava/time/LocalDateTime;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
static member Of : Java.Time.LocalDateTime * Java.Time.ZoneId -> Java.Time.ZonedDateTime

参数

localDateTime
LocalDateTime
zone
ZoneId

返回

属性

适用于

Of(LocalDate, LocalTime, ZoneId)

[Android.Runtime.Register("of", "(Ljava/time/LocalDate;Ljava/time/LocalTime;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public static Java.Time.ZonedDateTime? Of (Java.Time.LocalDate? date, Java.Time.LocalTime? time, Java.Time.ZoneId? zone);
[<Android.Runtime.Register("of", "(Ljava/time/LocalDate;Ljava/time/LocalTime;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
static member Of : Java.Time.LocalDate * Java.Time.LocalTime * Java.Time.ZoneId -> Java.Time.ZonedDateTime

参数

date
LocalDate
time
LocalTime
zone
ZoneId

返回

属性

适用于

Of(Int32, Int32, Int32, Int32, Int32, Int32, Int32, ZoneId)

[Android.Runtime.Register("of", "(IIIIIIILjava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public static Java.Time.ZonedDateTime? Of (int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, Java.Time.ZoneId? zone);
[<Android.Runtime.Register("of", "(IIIIIIILjava/time/ZoneId;)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
static member Of : int * int * int * int * int * int * int * Java.Time.ZoneId -> Java.Time.ZonedDateTime

参数

year
Int32
month
Int32
dayOfMonth
Int32
hour
Int32
minute
Int32
second
Int32
nanoOfSecond
Int32
zone
ZoneId

返回

属性

适用于