EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.
Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

My.Computer.Clock Object 

Provides properties for accessing the current local time and Universal Coordinated Time (equivalent to Greenwich Mean Time) from the system clock.

The My.Computer.Clock object provides properties to find the current local time for the computer and the UTC time. It also exposes the millisecond count from the computer's system timer.

This example uses the My.Computer.Clock.LocalTime property to display the local time of the computer on which the code runs.

MsgBox("Current local time: " & My.Computer.Clock.LocalTime)

Namespace: Microsoft.VisualBasic.Devices

Class: Clock

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
© 2013 Microsoft. Alle Rechte vorbehalten.