
TIME$ is a pseudo-variable that can be queried to get the current time as string. The returned string contains hour, minute and second separated by colons:
HH:MM:SS
TIME$ can only be read. Any write attempt is prohibited and ignored or rejected by the compiler.
This simply prints the current time of day:
outmode -2 print TIME$ end
There's no function to set the time from a BASIC program. Use the command line interface if you want to set a new time.