RealTimeService Class
Click or drag to resize

RealTimeService Class

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

Namespace:  TomsToolbox.Core
Assembly:  TomsToolbox.Core (in TomsToolbox.Core.dll) Version: 1.0.72.0
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
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also