Specifications

Commands - 121
TIME$
Statement
SYNTAX: TIME$ = time string
PURPOSE: TIME$ is used to set the time on the system calendar/clock. The clock keeps time on a 24 hour basis
with a resolution of one second.
REMARKS: The time string may be a variable or a constant. In either case the format is the same.
The string must be in the form:
hh:mm:ss
where hh is the hour and ranges from 01 to 23, mm is the minute (00 to 59) and ss the second (00 to
59).
NOTE: No error checking is done on the entries. If you enter 99 for the minutes, no error message
will be given.
RELATED: TIME$ function and DATE$
EXAMPLE: 10 TIME$ = "11:23:45"
10 A$ = “01:45:12"
20 TIME$ = A$
ERROR: <Syntax> – if two digits are not used hh,mm,ss or, if digits not 0–9 are entered.