Duration.TotalSeconds

Duration.TotalSeconds(duration as nullable duration) as nullable number

返回所提供的 durationduration 跨越的总秒数。

示例:

计算 #duration(5, 4, 3, 2) 中跨越的总秒数。

使用情况:

Duration.TotalSeconds(#duration(5, 4, 3, 2))

输出:

446582

results matching ""

    No results matching ""