CitectVBA Programming Reference > CitectVBA Function Reference > Date and Time Functions > Time (statement)

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

Date statement

Example

' Time statement example
Dim varMyTime
' Assign a time.
varMyTime = #4:35:17 PM#
' Set system time to variant varMyTime.
Time = varMyTime