Setclock - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
®
254
SIMPL+

SETCLOCK

Name:
SetClock
Syntax:
SetClock(INTEGER HOURS, INTEGER MINUTES, INTEGER
SECONDS);
Description:
Sets the system clock.
Parameters:
HOURS is an integer containing the hour portion of the time to which the clock is set.
HOURS is expressed in 24-hour format, which can range from 0 to 23.
MINUTES is an integer containing the minutes portion of the time to which the clock
is set. MINUTES range from 0 to 59.
SECONDS is an integer containing the seconds portion of the time to which the clock
is set. SECONDS range from 0 to 59.
Return Value:
None.
Example:
ANALOG_INPUT Hours, Minutes, Seconds;
CHANGE Hours, Minutes, Seconds
{
SetClock(Hours, Minutes, Seconds);
PRINT("Current Time is: %s\n", Time());
}
In this example, the Hours, Minutes, and Seconds are specified from an external
SIMPL Program. For example, if Hours = 5, Minutes = 10, Seconds = 25, then the
output will be Current Time is: 05:10:25.
Version:
SIMPL+ Version 2.00
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents