CrestronEnvironmentSetTimeAndDate Method |
Set the system time and date
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static void SetTimeAndDate(
ushort Hours,
ushort Minutes,
ushort Seconds,
ushort Month,
ushort Day,
ushort Year
)
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.
- Month UInt16
- The month to which the date is set. Valid range is 1 through 12, corresponding to January through December.
- Day UInt16
- The dat of the month to which to date is set. The range varies from month to month, but always starts at 1 and does not go above 31.
- Year UInt16
- The year to which the date is set. The year is four digits, i.e. 2006.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also