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)
Syntax
public class RealTimeService : ITimeService

The RealTimeService type exposes the following members.

Constructors
  NameDescription
Public methodRealTimeService
Initializes 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
See Also