VBScript SecondFunction


VBScript 参考手册Complete VBScript Reference Manual

The Second function returns a number representing the seconds of a minute, between 0 and 59.

Syntax

Second(time)

Parameter Description
time Required. Any expression that represents a time.

Examples

Example 1

<script type="text/vbscript">

document.write(Second("13:45:21"))

</script>

The output of the above example is:

21

Try it Yourself »

Example 2

<script type="text/vbscript">

document.write(Second(Now()))

</script>

The output of the above example is:

document.write(Second(Now()))

Try it Yourself »


VBScript 参考手册Complete VBScript Reference Manual Other Extensions