Download DUINOMITE USERS MANUAL

Transcript
DATE$ Statement and Variable
Purpose:
To set or retrieve the current date.
Syntax:
As a statement:
DATE$=v$
As a variable:
v$=DATE$
Comments:
The date is set to “01-01-2000” at power up. If MOD-RTC (Real-Time-Clock Module) is connected to
UEXT the current date will be set form the read content from MOD-RTC.
V$ is a valid string literal or variable.
V$ can be any of the following formats when assigning the date:
dd-mm-yy
dd/mm/yy
dd-mm-yyyy
dd/mm/yyyy
If v$ is not a valid string, a "Type Mismatch" error results. Previous values are retained.
If any of the values are out of range or missing, an "Invalid date" error is issued. Any previous date
is retained.
The current date (as assigned when the operating system was initialized) is fetched and assigned to the
string variable if DATE$ is the expression in a LET or PRINT statement.
The current date is stored if DATE$ is the target of a string assignment.
With v$=DATE$, DATE$ returns a 10-character string in the form dd-mm-yyyy. dd is the day (01 to
31), mm is the month (01 to 12) and yyyy is the year (2000 to 9999).
Examples:
V$=DATE$
PRINT V$
01-01-2000