Time Statement |
Time = time
time
Use: Required
Data Type: Variant
Any valid time expression.
Sets the current system time.
The Time statement attempts to evaluate the variant you are assigning as a valid time; if it can't be converted to a valid time, a runtime error is generated.
It's not a good idea to independently set the date and time in a networked environment. Instead, the log-on script of each workstation should include code to set the date and time of the workstation to be that of the PDC or another centrally used server.
You can use the Time function to return the current system time.