Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

TIME$

Description

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.  

Example

This simply prints the current time of day:

outmode -2
print TIME$
end

Remarks

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.