Export (0) Print
Expand All

SWbemDateTime.YearSpecified property

The YearSpecified property of the SWbemDateTime object is a Boolean value that indicates whether the year component in the CIM datetime value contains an interval or a wildcard value. If YearSpecified is TRUE and IsInterval is FALSE, then SWbemDateTime.Year contains a datetime value. A datetime value that contains an interval cannot be converted into either the VT_DATE format or the FILETIME format. If YearSpecified is FALSE and IsInterval is TRUE, then SWbemDateTime.Year contains an interval.

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

This property is read/write.

Syntax

SWbemDateTime.YearSpecified As Boolean

Property 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

Minimum supported server

Windows Server 2003

Type library

Wbemdisp.tlb

DLL

Wbemdisp.dll

See also

SWbemDateTime.Year
SWbemDateTime
DATETIME

 

 

Show:
© 2014 Microsoft