DIAdem Help

Method: Time for VBS

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

Method: Time for VBS

Specifies the current system time. DIAdem uses the format specified in the operation system for the time.

The methods Time and CurrTime display the time. Add CurrDate if you want to also add the date as is the case in the functions TTR and RTT. If you also want to display the milliseconds, use RTT(Time). However, in this case the RTT function does not display the current date but the year in relation to the ApplicationTimebaseHighResolution variable.

vTime = Object.Time
ObjectVBS
Object with this method. You do not need to specify this object.
vTimeVariant
Receives the current system time.

The following example displays the current system time:

Dim MyVar
MyVar = Time
Call MsgBox(MyVar) ' Returns current time

Related Topics

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