VBScript TimeSerial Function
Complete VBScript Reference Manual
The TimeSerial function returns the time for a specific hour, minute, and second.
Syntax
TimeSerial(hour,minute,second)
| Parameters | Description |
|---|---|
| hour | Required. A number between 0 and 23, or a numeric expression. |
| minute | Required. A number between 0 and 59, or a numeric expression. |
| second | Required. A number between 0 and 59, or a numeric expression. |
Example
Example
The example above produces the following output:
11:02:03 PM
12:09:11 AM
4:07:00 PM
Try it »
Complete VBScript Reference Manual