SWbemDateTime.Seconds property

The Seconds property of the SWbemDateTime object gets or sets a value that represents the seconds 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.Seconds As Long

Property value

Error codes

After you get or set the Seconds 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

The SWbemDateTime.Seconds property may contain an incorrect value if the SWbemDateTime.Minutes property has been set to 1. It contains a value that is offset by one second because of 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 (zero) 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 Vista

Minimum supported server

Windows Server 2003

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

See also

SWbemDateTime.SecondsSpecified
SWbemDateTime
DATETIME

 

 

Show:
© 2014 Microsoft