Interface IDateTimeProvider
Provides methods to work with date and time.
Namespace: Terrasoft.Core
Assembly: Terrasoft.Core.dll
Syntax
public interface IDateTimeProvider
Properties
UtcNow
Gets a System.DateTime instance that is set to the current date and time, expressed as the Coordinated Universal Time (UTC).
Declaration
DateTime UtcNow { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Methods
ToDateTime(TimeSpan)
Returns System.DateTime instance that is set to the time for today.
Declaration
DateTime ToDateTime(TimeSpan time)
Parameters
| Type | Name | Description |
|---|---|---|
| System.TimeSpan | time | Time of the day. |
Returns
| Type | Description |
|---|---|
| System.DateTime |