Toggle navigation

VBScriptSecond函数


VBScript 参考手册 完整的 VBScript 参考手册

Second 函数返回表示分钟的秒数的数字,介于 0 到 59 之间。

语法

Second(time)

参数描述
time必需的。任何表示时间的表达式。

实例

实例 1

<script type="text/vbscript">
document.write(Second("13:45:21"))
</script>

以上实例输出结果:

21
试一试

实例 2

<script type="text/vbscript">
document.write(Second(Now()))
</script>

以上实例输出结果:

document.write(Second(Now()))
试一试


VBScript 参考手册 完整的 VBScript 参考手册