This topic has not yet been rated - Rate this topic

SWbemDateTime.Minutes property

The Minutes property of the SWbemDateTime object gets or sets a value that represents the minutes component of the datetime value.

For an explanation of this syntax, see Document Conventions for the Scripting API.

This property is read/write.

Syntax

SWbemDateTime.Minutes As Long

Property value

Error codes

After you get or set the Minutes property, the Err object may contain the error code in the following table.

Error (Name/Dec/Hex)Meaning
wbemErrValueOutOfRange
2147749931 (0x8004102B)

The value was not in the range of 0 through 59.

Remarks

If the SWbemDateTime.Minutes property is set to 1, then the SWbemDateTime.Seconds property contains a value that is offset by one second a rounding error that occurs when a CIM datetime value is translated to a VT_DATE value. If the Minutes property is set to 0 instead, then the Seconds property returns the correct value.

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

See also

SWbemDateTime.MinutesSpecified
SWbemDateTime
DATETIME

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.