語言

TimeUnit.ToSeconds(Int64) 方法

定義

相當於 #convert(long, TimeUnit) SECONDS.convert(duration, this)。

[Android.Runtime.Register("toSeconds", "(J)J", "")]
public long ToSeconds(long duration);
[<Android.Runtime.Register("toSeconds", "(J)J", "")>]
member this.ToSeconds : int64 -> int64

參數

duration
Int64

持續時間

傳回

轉換後的持續時間,或 Long.MIN_VALUE 是轉換是否會負溢出,或 Long.MAX_VALUE 是否會正溢出。

屬性

備註

相當於 #convert(long, TimeUnit) SECONDS.convert(duration, this)。

Java 文件 java.util.concurrent.TimeUnit.toSeconds(long)。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於