SYSTEMTIME Structure

 

Represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

public struct SYSTEMTIME

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from ValueType.)

NameDescription
System_CAPS_pubfieldwDay

Specifies the current day of the month.

System_CAPS_pubfieldwDayOfWeek

Specifies the current day of the week; Sunday = 0, Monday = 1, and so on.

System_CAPS_pubfieldwHour

Specifies the current hour.

System_CAPS_pubfieldwMilliseconds

Specifies the current millisecond.

System_CAPS_pubfieldwMinute

Specifies the current minute.

System_CAPS_pubfieldwMonth

Specifies the current month.

System_CAPS_pubfieldwSecond

Specifies the current second.

System_CAPS_pubfieldwYear

Specifies the current year. The year must be greater than 1601.

It is recommended that you not add and subtract values from the SYSTEMTIME structure to obtain relative times. Instead, you should

  • Convert the SYSTEMTIME structure to a FILETIME structure.

  • Copy the resulting FILETIME structure to a ULARGE_INTEGER structure.

  • Use normal 64-bit arithmetic on the ULARGE_INTEGER value.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: