Method IsFuture
IsFuture(DateTimeOffset)
Returns true if time references a time in the future.
Declaration
public static bool IsFuture(this DateTimeOffset time)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTimeOffset | time | The System.DateTimeOffset 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.DateTimeOffset.Now.
IsFuture(DateTimeOffset, IClock)
Returns true if time references a time in the future.
Declaration
public static bool IsFuture(this DateTimeOffset time, IClock clock)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTimeOffset | time | The System.DateTimeOffset 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.DateTimeOffset.Now.