OffsetTime.Now 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Now() | |
Now(ZoneId) | |
Now(Clock) |
Now()
[Android.Runtime.Register("now", "()Ljava/time/OffsetTime;", "", ApiSince=26)]
public static Java.Time.OffsetTime? Now ();
[<Android.Runtime.Register("now", "()Ljava/time/OffsetTime;", "", ApiSince=26)>]
static member Now : unit -> Java.Time.OffsetTime
返回
- 属性
适用于
Now(ZoneId)
[Android.Runtime.Register("now", "(Ljava/time/ZoneId;)Ljava/time/OffsetTime;", "", ApiSince=26)]
public static Java.Time.OffsetTime? Now (Java.Time.ZoneId? zone);
[<Android.Runtime.Register("now", "(Ljava/time/ZoneId;)Ljava/time/OffsetTime;", "", ApiSince=26)>]
static member Now : Java.Time.ZoneId -> Java.Time.OffsetTime
参数
- zone
- ZoneId
返回
- 属性
适用于
Now(Clock)
[Android.Runtime.Register("now", "(Ljava/time/Clock;)Ljava/time/OffsetTime;", "", ApiSince=26)]
public static Java.Time.OffsetTime? Now (Java.Time.Clock? clock);
[<Android.Runtime.Register("now", "(Ljava/time/Clock;)Ljava/time/OffsetTime;", "", ApiSince=26)>]
static member Now : Java.Time.Clock -> Java.Time.OffsetTime
参数
- clock
- Clock
返回
- 属性