System.Time object

[The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]

Defines the properties and methods for determining system time information as well as the properties for the timeZones collection.

Note

Objects of type System.Time.timeZone can only be accessed through the timeZones collection. This collection is a member of System.Time.

Members

The System.Time object has these types of members:

Collections

The System.Time object has these collections.

Collection Description
[timeZones](system-time-timezones.md) A collection of [System.Time.timeZone](system-time-timezone.md) objects.
[!Note]
Objects of type [System.Time.timeZone](system-time-timezone.md) can only be accessed through the [timeZones](system-time-timezones.md) collection. This collection is a member of System.Time.

Methods

The System.Time object has these methods.

Method Description
getLocalTime Gets the system time for a specific time zone.

Properties

The System.Time object has these properties.

Property Access type Description
currentTimeZone
Read-only
Gets a System.Time.timeZone object that represents the system time zone.

Remarks

Each System.Time.timeZone in the timeZones collection corresponds to the time zones itemized in the Time Zone Settings dialog.

The following image shows the Time Zone Settings dialog.

time zone settings dialog

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
End of client support
Windows 7
End of server support
Windows Server 2008
IDL
Sidebar.idl
DLL
Sidebar.Exe (version 1.00 or later)