The ARMmite, ARMweb, DINkit and SuperPRO have a provision to add a battery to keep these time functions running when power is removed.  That battery (ML2020) has to be installed by the user or can be special ordered for larger volume customers.

The BASICchip does not have RTC hardware.  The PROplus board does not have the RTC crystal installed.


#include <RTC.bas>                              ' source in /Program Files/Coridium/BASIClib

FUNCTION MONTH(value)          ' call with 0 or less to return the present MONTH, >0 will set the MONTH


Function setting or returning the month.

When called with a non-zero value, the MONTH is changed.
Range 1 to 12.


#include <RTC.bas>


PRINT "This is ";   MONTH(0); "/"; DAY(0); "/"; YEAR(0), "at"; HOUR(-1); ":"; MINUTE(-1); ":"; SECOND(-1)
The output would look like:
This is 4/14/2006 at 13:15:30