This is preliminary documentation and is subject to change.

IDateTimeProvider Interface

The interface for providing DateTime information

Definition

Namespace: MoreDateTime.Interfaces
Assembly: MoreDateTime (in MoreDateTime.dll) Version: 1.3.0
C#
public interface IDateTimeProvider

Properties

Now Gets the current DateTime (or the mock value if set)
Today Gets the date part of the current DateTime with the time set to 00:00:00 (or the mock value if set)
UtcNow Gets the current UTC DateTime (or the mock value if set)
UtcToday Gets the date part of the current UTC DateTime with the time set to 00:00:00 (or the mock value if set)

See Also