Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 CMM2

TIME$ = +- sec
string$ = TIME$


Sets the time of the internal clock. MM and SS are optional and will default to zero if not specified. 
For example TIME$ = "14:30" will set the clock to 14:30 with zero seconds. 

The CMM2 has an inbuilt RTC
The time is set to "00:00:00" on first power up however the time will be remembered and kept updated as long as the battery is installed and can maintain a voltage of over 2.5V. 
Battery life should be 3 to 4 years even if the computer is powered off. Note that the date must also be set (using DATE$=) otherwise the correct time will be lost after the power is cycled.

Micromites use an optional external RTC . See the RTC command for setting the external RTC

TIME$ = +- sec (CMM2)
Adds or subtracts 'sec' seconds from the current time being maintained by MMBasic. This makes it easier to fine tune the current time.

string$ = TIME$
Returns the current time based on MMBasic's internal clock as a string in the form "HH:MM:SS" in 24 hour notation. 
For example, "14:30:00". 
On the CMM2, if the OPTION MILLISECONDS ON command has been used this function will return the time including milliseconds as a decimal fraction of the seconds. For example: "14:35:06.239".


Last edited: 05 October, 2020