Click or drag to resize

DateTimeProvider Class

A provider that can be used to retrieve the current date and time in a way that can be influenced using dependency injection.
Inheritance Hierarchy

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public class DateTimeProvider

The DateTimeProvider type exposes the following members.

Constructors
  NameDescription
Public methodDateTimeProvider
Initializes a new instance of the DateTimeProvider class.
Top
Properties
  NameDescription
Public propertyMaxValue
Gets the largest possible value of DateTime.
Public propertyMinValue
Gets the smallest possible value of DateTime.
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 the current date.
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
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also