Rpbasic-52 programming guide, Date – Remote Processing BASIC 52 User Manual

Page 46

Advertising
background image

RPBASIC-52 PROGRAMMING GUIDE

2-27

DATE

(statement)

Syntax:

DATE year,month,day[,day of week]
Where: year = 0 to 99

month = 1 to 12
day = 1 to 31
day of week = 1 to 7

Function:

Sets the date to the real time clock

Mode:

Comm and, Run

Use:

DATE 96,11,17

Sets date to November 17, 1996

Cards:

All

D E S C R IP T I ON

Leap yea r is automatica lly set. Tests for day check limits of 1 to 31. It does not check for a valid day in a
month. You could set 2-31-96 as a valid date.

This com mand m ust be execute d first to turn on the clock m odule. DA TE and T IME func tions or the TIM E
command will not work otherwise.

day of week can on ly be se t on ca rds usin g a DS 1216D M typ e cloc k mo dule. (T his exc ludes t he R PC-5 2.)

RELATED

DAT E (function), TIM E

ERRORS

B A D A R G U M E N T When month, day, or year is out of range.
H A R D W A R E

Clock module missing or bad.

Advertising