Click or drag to resize

RealTimeService Class

Time service returning the actual system values from DateTime.
Inheritance Hierarchy
SystemObject
  TomsToolbox.EssentialsRealTimeService

Namespace: TomsToolbox.Essentials
Assembly: TomsToolbox.Essentials (in TomsToolbox.Essentials.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public class RealTimeService : ITimeService

The RealTimeService type exposes the following members.

Constructors
 NameDescription
Public methodRealTimeServiceInitializes a new instance of the RealTimeService class
Top
Properties
 NameDescription
Public propertyNow Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
Public propertyToday Gets a DateTime object that is set to today's date, with the time component set to 00:00:00.
Public propertyUtcNow Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Top
Extension Methods
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
See Also