Microsoft KB Archive/50786

From BetaArchive Wiki

WordBASIC Time$() Function Defined

PSS ID Number: Q50786 Article last modified on 02-17-1993

1.00 1.10 1.10a 2.00 WINDOWS

Summary: The WordBasic Time$() function returns the current time in the default format for Microsoft Word for Windows.

Syntax

A$ = Time$() You can change the default format by inserting the TIMEFORMAT=time-picture setting in the WIN.INI file. TIMEFORMAT sets the default time format for Word documents. Refer to the “Date/Time-Picture Switch” under “Fields” in the “Microsoft Word for Windows User’s Reference” for the various format possibilities.

Example

A$ = Time$()
Print "The time is: " + A$

For more information on WordBasic functions, refer to the “Microsoft Word for Windows Technical Reference.”

Additional reference words: 1.0 1.00 w4wmacro