Date – Remote Processing CAMBASIC User Manual

Page 62

Advertising
background image

Comm ands - 29

DATE$

System Function

SYNTAX:

a$ = DATE $(n)

PURPOSE:

The DAT E$ function is used read the date of the system calendar clock. The system clock keeps
time on a 24 hour basis with a resolution of one second.

REMARK S:

The date is returned in two forms depending upon the value of the argument n. When n= 0, the
months, days and year s are returned. When n= 1, the day of the week is returned. The RPC -2350
does not support day of week.

The cloc k is set by the D ATE $ statemen t.

RELATED:

DATE$ statement and TIME$

EXAMPLE:

10 DATE$ = "02-11-91,4"
20 PRINT DATE$(0)
30 PRINT DATE$(1)

02-11-91
04

ERROR:

< Data negative> - for n
< Illegal argument> – if n > 1

Advertising