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
傳回
- 屬性