Provides properties for accessing the current local time and Universal Coordinated Time (equivalent to Greenwich Mean Time) from the system clock.
| C# | Visual Basic |
public class Clock
Public Class Clock
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Clock()()()() | Initializes a new instance of the Clock class | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| GmtTime |
Gets a Date object that contains the current local date and time on the computer, expressed as a UTC (GMT) time.
| |
| LocalTime |
Gets a Date object that contains the current local date and time on this computer.
| |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| TickCount |
Gets the millisecond count from the computer's system timer.
| |
| ToString()()()() | (Inherited from Object.) |
For more detailed information, see the Visual Basic topic My.Computer.Clock Object.
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.
| Object | |
| Clock | |