Click or drag to resize

CrestronEnvironmentSetTime Method

Function to change the current time of the system.

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static void SetTime(
	ushort Hours,
	ushort Minutes,
	ushort Seconds
)

Parameters

Hours  UInt16
The hour portion of the time to set the system time to. Valid range is from 0 to 23.
Minutes  UInt16
The minutes portion of the time to set the system time to. Valid range is from 0 to 59.
Seconds  UInt16
The seconds portion of the time to set the system time to. Valid range is from 0 to 59.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionOne of the parameters is outside the valid range.
NotSupportedExceptionSetting the time is not supported in this environment.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also