TIME$ returns an eight character string with the time. It is used for reading and setting the software independent calendar clock.
A$ = TIME$
TIME$ = A$
10 DIM AS(0,8) 20 PRINT TIME$ 30 A$ = "10:5" 40 TIME$ = A$
The eight character string is in the format hh:mm:ss. Leading zeros may be omitted, but, for example, if the minutes are zero, then one zero has to be entered.
To enter the time directly type the following:
Seconds must not be entered as this will give a Syntax error. Seconds are set to “00” when setting the clock.