Time (statement)
Sets the system time.
Syntax
Time = timeVariable
timeVariable:
You must enclose a Time literal within number signs (# #), for example #12:14:00 PM#.
Related Functions
Example
' Time statement example
Dim varMyTime
' Assign a time.
varMyTime = #4:35:17 PM#
' Set system time to variant varMyTime.
Time = varMyTime