Method: Time for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Time for VBS
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
| Object | VBS Object with this method. You do not need to specify this object. |
| vTime | Variant Receives the current system time. |
The following example displays the current system time:
Dim MyVar MyVar = Time Call MsgBox(MyVar) ' Returns current time
See Also
Related Topics
DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year