
CALENDAR/CLOCK CHAPTER 7
Page 26 RPC-30
DESCRIPTION
The RPC-30 has a built in battery backed
Calendar/clock. When used in conjunction with the
DATE$ and TIME$ commands, the current date and
time can be set and read.
The life of the battery depends upon the power
consumption of RAM in U10. Generally, you can
expect a battery life of 5 to 10 year s.
The clock chip, U17, contains a built in cr ystal.
Accuracy is about 1 minute/month and is not adjustable.
Refer to the CAM BASIC Programming Manual for
more specific command information.
SETTING DATE AND TIME
The date and time can be set while running a program or
in the immediate mode. Date and time are treated as
strings and not numbers. T o set the date and time:
date$="03-11-93"
time$="13:56:00"
To retrieve date and time as part of a program:
2000 DA$ = DATE$(0)
2010 TI$ = TIME$(0)
You can also print the date and time in the immediate
mode:
pr time$(0)
13:56:03
The clock is turned on and off and set for 12/24 hour
mode using the CO NF IG CL OCK statement.
COMMANDS
The following is a list of CAMBASIC commands for the
calendar/clock.
Command Function
CONFIG CLOCK Configures clock
DATE$ Sets date
DATE$(0) Returns date
TIME$ Sets time
TIME$(0) Returns time
Kommentare zu diesen Handbüchern