Setdate - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

SETDATE

Name:
SetDate
Syntax:
SetDate(INTEGER MONTH, INTEGER DAY, INTEGER YEAR);
Description:
Sets the system date.
Parameters:
MONTH is an integer containing the month to which the date is set. A valid range is
1 through 12, corresponding to January through December.
DAY is an integer containing the day of the month to which the date is set. The range
varies from month to month, but always starts at 1.
YEAR is an integer containing the year to which the date is set. The year is four
digits, i.e. 1999.
Return Value:
None.
Example:
ANALOG_INPUT Month, Day, Year;
CHANGE Month, Day, Year
{
SetDate(Month, Day, Year);
PRINT("Current Date is: %s\n", Date(1));
}
In this example, Month, Day, and Year come from a SIMPL Windows program. For
example, if Month = 12, Day = 25, Year = 1999, the output from this program will
be Current Date = 12/25/1999.
Version:
SIMPL+ Version 2.00
Software
®
SIMPL+
255

Advertisement

Table of Contents
loading

Table of Contents