DIAdem Help

Method: Second for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: Second for VBS

Specifies the second in a time expression.

vSecond = Object.Second(Time)
ObjectVBS
Object with this method. You do not need to specify this object.
TimeVariant
Specifies a time expression.
vSecondVariant
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)

Related Topics

DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year