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

The SYSTEMTIME type exposes the following members.

Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)

Public fieldwDaySpecifies the current day of the month.
Public fieldwDayOfWeekSpecifies the current day of the week; Sunday = 0, Monday = 1, and so on.
Public fieldwHourSpecifies the current hour.
Public fieldwMillisecondsSpecifies the current millisecond.
Public fieldwMinuteSpecifies the current minute.
Public fieldwMonthSpecifies the current month.
Public fieldwSecondSpecifies the current second.
Public fieldwYearSpecifies 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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft