TimeUnit.ToHours(Int64) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
相當於 #convert(long, TimeUnit) HOURS.convert(duration, this)。
[Android.Runtime.Register("toHours", "(J)J", "")]
public long ToHours(long duration);
[<Android.Runtime.Register("toHours", "(J)J", "")>]
member this.ToHours : int64 -> int64
參數
- duration
- Int64
持續時間
傳回
轉換後的持續時間,或 Long.MIN_VALUE 是轉換是否會負溢出,或 Long.MAX_VALUE 是否會正溢出。
- 屬性
備註
相當於 #convert(long, TimeUnit) HOURS.convert(duration, this)。
新增於1.6版本。
的 java.util.concurrent.TimeUnit.toHours(long)Java 檔。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。