10 REM PC-BASIC test 
20 REM TIME$ syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 1000
50 TIME$
60 TIME$=10
70 TIME$="10"
80 TIME$="10" LPRINT
90 TIME$ "10"
100 TIME$ "10:00"
110 TIME$="10:0"
120 TIME$="10:00:00"
130 TIME$="10:00:0"
140 TIME$="LATE"
999 END
1000 PRINT#1, ERR, ERL
1010 RESUME NEXT

