Method: Second for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Second for VBS
Method: Second for VBS
Specifies the second in a time expression.
vSecond = Object.Second(Time)
| Object | VBS Object with this method. You do not need to specify this object. |
| Time | Variant Specifies a time expression. |
| vSecond | Variant Receives an integer number in the range between 0 and 59 that represents the seconds. |
The following example displays the current second:
Dim Myvar MyVar = Second(Now) Call MsgBox(MyVar)
See Also
Related Topics
DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year