description | ms.assetid | ms.tgt_platform | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets or sets a value that represents the hours component of the datetime value. |
83f084fa-57a5-4467-acea-7e19de82a91f |
multiple |
SWbemDateTime.Hours property (Wbemdisp.h) |
reference |
05/31/2018 |
|
|
|
|
The Hours property of the SWbemDateTime object gets or sets a value that represents the hours component of the datetime value.
For an explanation of this syntax, see Document Conventions for the Scripting API.
This property is read/write.
SWbemDateTime.Hours As Long
After you get or set the Hours property, the Err object may contain the error code below.
-
wbemErrValueOutOfRange - 2147749931 (0x8004102B)
-
The value was not in the range of 0 through 23.
For examples of using the SWbemDateTime object to convert CIM DATETIME values to and from either the FILETIME format or the VT_DATE format, see WMI Tasks: Dates and Times. For a description of the CIM DATETIME format, see Date and Time Format.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
Type library |
|
DLL |
|
CLSID |
CLSID_SWbemDateTime |
IID |
IID_ISWbemDateTime |