VBScript Second function
Second function returns the number of seconds the number of minutes, between 0-59.
grammar
Second(time)
参数 | 描述 |
---|---|
time | 必需的。任何表示时间的表达式。 |
Examples
Example 1
<script type="text/vbscript">
document.write(Second("13:45:21"))
</script>
document.write(Second("13:45:21"))
</script>
Examples of the above output:
21
try it"
Example 2
<script type="text/vbscript">
document.write(Second(Now()))
</script>
document.write(Second(Now()))
</script>
Examples of the above output:
document.write(Second(Now()))
try it"
Complete VBScript Reference