Method IsFuture
IsFuture(DateTime)
Returns true if time
references a time in the future.
Declaration
public static bool IsFuture(this DateTime time)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | time | The System.DateTime to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified date and time is in the future, otherwise false. |
Remarks
This compares time
to System.DateTime.Now.
IsFuture(DateTime, IClock)
Returns true if time
references a time in the future.
Declaration
public static bool IsFuture(this DateTime time, IClock clock)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | time | The System.DateTime to check. |
IClock | clock | A IClock implementation used to obtain the current time. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified date and time is in the future, otherwise false. |
Remarks
This compares time
to System.DateTime.Now.