Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The UTC property of the SWbemDateTime object gets or sets the Coordinated Universal Time (UTC) representation of the datetime value. UTC is the time as set by the World Time Standard. UTC has replaced Greenwich Mean Time (GMT). A UTC value with a zero offset is the same as GMT with a zero offset. The signed number must be in the range of -720 through 720 when setting this property, otherwise the error wbemErrValueOutOfRange is returned. Values read from the property may fall outside this range without triggering an error.
For an explanation of this syntax, see Document Conventions for the Scripting API.
This property is read/write.
Syntax
SWbemDateTime.UTC As Long
Property value
Error codes
After you set the UTC property, the Err object may contain the error code below.
-
wbemErrValueOutOfRange - 2147749931 (0x8004102B)
-
The value was not in the range of -720 through 720.
Examples
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.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows Vista |
| Minimum supported server |
Windows Server 2008 |
| Header |
|
| Type library |
|
| DLL |
|
| CLSID |
CLSID_SWbemDateTime |
| IID |
IID_ISWbemDateTime |