Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Time StatementThis standard VB statement sets the computer's time. SyntaxReturnsUsageWhen Time (with the dollar sign, $) is used, expression must evaluate to a string of one of the following forms: Time uses a 24-hour clock. Thus, 6:00 P.M. must be entered as 18:00:00. If the dollar sign ($) is omitted, expression can be a string containing a valid date, or a variant of vartype 7 (date) or 8 (string). If expression is not already a variant of vartype 7 (date), Time attempts to convert it to a valid time. It recognizes time separator characters defined in the International section of the Windows Control Panel. Time (without the $) accepts both 12- and 24-hour clocks. ExampleThis example changes the time on the computer's clock. Sub Button_Click See AlsoDate Function |
Siebel VB Language Reference |