RealTimeService Class |
Namespace: TomsToolbox.Essentials
The RealTimeService type exposes the following members.
Name | Description | |
---|---|---|
RealTimeService | Initializes a new instance of the RealTimeService class |
Name | Description | |
---|---|---|
Now |
Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
| |
Today |
Gets a DateTime object that is set to today's date, with the time component set to 00:00:00.
| |
UtcNow |
Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
|
Name | Description | |
---|---|---|
SafeCastT |
Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions.) |