TIME$ = “HH:MM:SS”
TIME$ = “HH:MM”
TIME$ = “HH”
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 time is set to “0:0:0” (midnight) on power up.
Normally the time is set to “00:00:00” on power up. If the real time clock option is fitted to the Color Maximite the current time will be automatically set using that facility.
TIME$
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”. The internal clock/calendar will keep track of the time and date including leap years.
REAL-TIME CALENDAR/CLOCK
You can get the current date and time using the DATE$ and TIME$ functions and you can set them by assigning the new date and time to them. Hardware (CGCOLORMAX) with the battery backed clock will never loose the time. On Maximites without RTC hardware (CGMMSTICK) the calendar will start from midnight 1st Jan 2000 on power up.
See also:
DATE$
TIME$
Leave a Reply